level 11
梦路_YumeMichi
楼主
平台:CentOS 6.5 64位最小化安装
编译ffms2遇到了点问题,configure一直提示无法链接到FFmpeg
configure参数
./configure --prefix=/usr/local/ffmpeg/ --bindir=/usr/local/ffmpeg/bin/ --enable-static --disable-shared LIBAV_CFLAGS="-I/usr/local/ffmpeg/include/" LIBAV_LIBS="-L/usr/local/ffmpeg/lib/"
config.log中相关部分
configure:16021: checking whether linking with FFmpeg or Libav
configure:16047: gcc -o conftest -O3 -I/usr/local/ffmpeg/include/ -D__STDC_CONSTANT_MACROS conftest.c >&5
conftest.c:39:73: warning: missing terminating ' character
configure:16047: $? = 0
configure:16064: result: FFmpeg
configure:16069: checking whether FFmpeg works
configure:16093: gcc -o conftest -O3 -I/usr/local/ffmpeg/include/ -D__STDC_CONSTANT_MACROS conftest.c -L/usr/local/ffmpeg/lib/ >&5
/tmp/cc8SStaQ.o: In function `main':
conftest.c:(.text+0x5): undefined reference to `avcodec_register_all'
conftest.c:(.text+0xa): undefined reference to `swscale_version'
collect2: ld returned 1 exit status
ffmpeg我已经安装了

求帮助!
2014年03月22日 15点03分
1
编译ffms2遇到了点问题,configure一直提示无法链接到FFmpeg
configure参数
./configure --prefix=/usr/local/ffmpeg/ --bindir=/usr/local/ffmpeg/bin/ --enable-static --disable-shared LIBAV_CFLAGS="-I/usr/local/ffmpeg/include/" LIBAV_LIBS="-L/usr/local/ffmpeg/lib/"
config.log中相关部分
configure:16021: checking whether linking with FFmpeg or Libav
configure:16047: gcc -o conftest -O3 -I/usr/local/ffmpeg/include/ -D__STDC_CONSTANT_MACROS conftest.c >&5
conftest.c:39:73: warning: missing terminating ' character
configure:16047: $? = 0
configure:16064: result: FFmpeg
configure:16069: checking whether FFmpeg works
configure:16093: gcc -o conftest -O3 -I/usr/local/ffmpeg/include/ -D__STDC_CONSTANT_MACROS conftest.c -L/usr/local/ffmpeg/lib/ >&5
/tmp/cc8SStaQ.o: In function `main':
conftest.c:(.text+0x5): undefined reference to `avcodec_register_all'
conftest.c:(.text+0xa): undefined reference to `swscale_version'
collect2: ld returned 1 exit status
ffmpeg我已经安装了

求帮助!