最近因为工作需要进行FFMPEG的编译工作,在编译过程中出现不少问题,现把一些出现的问题及解决办法记录下来,以便以后查找。
使用环境MSYS+MINGW在编译libvorbis时出现了undefined reference to `ogg_sync_pageseek' 的提示,在网上查找资料几天,最开始看到有人说要改makefile,因为我粗心的原因没有看到他说明的位置,我就直接改了源码的首目录中的makefile文件,问题未能解决,以为这方法不对,后面再仔细查找发现有人的回答如下:
mingw and libvorbis
when compiling libvorbis i got some undefined references:
undefined reference to `ogg_sync_pageseek' ...
(mingw)
fixed by changing the lib/Makefile after ./configure so that the LIB and OGG_LIB lines look like that:
LIBS = -L/local/lib -logg
OGG_LIBS = -L/local/lib -logg 解决办法就是./configure 后,应该修改在源码的LIB目录下MAKEFILE文件。唉看来以后要仔细点了。 问题解决来源地址: http://divfixes.blogspot.com/2007/07/mingw-and-libvorbis.html