交叉编译精简版mplayer出错:
libmpcodecs/vd_lzo.o: In function `decode':
vd_lzo.c:(.text+0x70): undefined reference to `av_lzo1x_decode'
libmpdemux/demux_mkv.o: In function `demux_mkv_decode.clone.5':
demux_mkv.c:(.text+0xe1c): undefined reference to `av_lzo1x_decode'
sub/sub.o: In function `vo_update_osd_ext.clone.2':
sub.c:(.text+0x758): undefined reference to `render_one_glyph'
sub.c:(.text+0x8b4): undefined reference to `render_one_glyph'
sub.c:(.text+0x8c0): undefined reference to `render_one_glyph'
sub.c:(.text+0x8cc): undefined reference to `render_one_glyph'
sub.c:(.text+0x8d8): undefined reference to `render_one_glyph'
sub/sub.o:sub.c:(.text+0x8e4): more undefined references to `render_one_glyph' follow
sub/sub.o: In function `vo_update_osd_ext.clone.2':
sub.c:(.text+0xf80): undefined reference to `kerning'
sub.c:(.text+0x10e0): undefined reference to `render_one_glyph'
sub.c:(.text+0x16d8): undefined reference to `render_one_glyph'
sub.c:(.text+0x16e4): undefined reference to `render_one_glyph'
sub.c:(.text+0x16f0): undefined reference to `render_one_glyph'
sub.c:(.text+0x16fc): undefined reference to `render_one_glyph'
sub/sub.o:sub.c:(.text+0x2314): more undefined references to `render_one_glyph' follow
sub/sub.o: In function `vo_update_osd_ext.clone.2':
sub.c:(.text+0x29e4): undefined reference to `kerning'
collect2: ld returned 1 exit status
Makefile:750: recipe for target 'mplayer' failed
make: *** [mplayer] Error 1
解决方法:
1) mplayer编译选项中不要加 --disable-bitmap-font, 需要编译到文件font_load.c , 因为render_one_glyph 在这个文件中定义
2)av_lzo1x_decode 在 ./ffmpeg/libavutil/lzo.c中定义 所以在ffmpeg/config.mak 中!CONFIG_LZO=yes 改成CONFIG_LZO=yes
作者:帅得不敢出门 程序员群:31843264
阅读(2195) | 评论(0) | 转发(0) |