我尝试使用 ./configure --target=x86-win32-gcc --enable-static-msvcrt --prefix=/MinGW 在 MinGW 上编译 libvpx 并收到此错误:
[STRIP] libgtest.a < libgtest_g.a
/bin/sh: /mingw/bin/strip: Bad file number
make[1]: *** [libgtest.a] Error 126
make: *** [.DEFAULT] Error 2
有什么想法可以解决这个问题吗?我已经尝试了 git 上最新的 libvpx 和它的 1.2.0 版本,都给了我这个错误。
最佳答案
对于 win32 上的 libvpx 1.3,现有答案对 win32 没有帮助(--disable-unit-tests 对 macOS 有帮助)。
使用此补丁:libvpx-makefile.diff我可以解决脱衣问题(日语页面:compilation and installation of libvpx (v1.0.0 or later))。此处记录了另一个解决方案:Building libvpx in MinGW 。
但后来我陷入了 strtok_s
链接错误,我已经通过内联解决了 this public domain version
关于mingw - MinGW 中的 libvpx : Bad file number,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20085443/