1.编译失败
ffmpeg_opt.c:490: warning: dereferencing type-punned pointer will break strict-aliasing rules
ffplay.c: In function `audio_open':
ffplay.c:2288: warning: implicit declaration of function `SDL_getenv'
ffplay.c:2288: warning: assignment makes pointer from integer without a cast
ffplay.c: In function `main':
ffplay.c:3384: warning: implicit declaration of function `SDL_putenv'
ffplay.o(.text+0x516f): In function `stream_component_open':
/data/liubin/ffmpeg-1.2.1/ffplay.c:2288: undefined reference to `SDL_getenv'
ffplay.o(.text+0x8f37): In function `main':
/data/liubin/ffmpeg-1.2.1/ffplay.c:3384: undefined reference to `SDL_putenv'
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1
红色部分实际为SDL-1.2.15 的函数
编译失败,是因为os中缺省该库,
[root@TEST192 ffmpeg-1.2.1]# ack libSDL
libavdevice/sdl.c
23: * libSDL output device
google到该库wget
./configure
make
make install
默认将该lib的头文件安装到/usr/local/include/SDL 下,
因此要在编译ffmpeg 时,指定改库的路劲
./configure --disable-yasm --incdir=/usr/local/include/SDL/
然后make,make install
阅读(5600) | 评论(0) | 转发(0) |