我没有任何经验交叉编译,所以可能有一个简单的解决方案来解决我的问题。我从http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz下载了libogg 1.3.1,从http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2下载了libtheora。首先,我使用这些命令编译和libogg(在MSYS中,当在解压缩的目录中时):
./configure --prefix=/usr/local/x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-static
make clean && make -j4
make install
看起来一切正常(没有报告错误,我在/ usr / local / x86_64-w64-mingw32中看到了libogg文件)。
我还使用类似命令编译和安装libvorbis和libSDL(在http://www.theora.org/downloads/上的链接中找到下载)
然后我尝试编译libtheora并且在配置时失败。这是我运行的命令:
./configure --prefix=/usr/local/x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-static
,结果是关于找不到libogg库的错误(下面是configure输出的结尾):
checking for OGG... no
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error:
libogg is required to build this package!
please see http://www.xiph.org/ for how to
obtain a copy.
有没有人对我做错了什么有任何想法?
谢谢,
大卫