编译mplayer时,加--enable-freetype参数出错 (解决)

Totem,mplayer,sopcast,realplayer,bmp
回复
waggg
帖子: 5
注册时间: 2006-08-13 0:43
送出感谢: 0
接收感谢: 0

编译mplayer时,加--enable-freetype参数出错 (解决)

#1

帖子 waggg » 2006-12-01 0:42

看有的帖子说,在编译时加入--enable-freetype参数可以解决字幕乱码的问题,但是加了之后make时出错,看不大明白,敬请指教!!!

代码: 全选

./configure --enable-gui --enable-network --enable-real --enable-mp3lib --language=zh_CN --disable-mencoder --enable-freetype


make出错,不加--enable-freetype可以正常编译,不过GUI和字幕均为乱码,有心的大大一并指点一下,谢谢!!!!!

代码: 全选

ubuntu@ubuntu:~/MPlayer-1.0rc1$ make
./version.sh `cc -dumpversion`
cc -c -Wdeclaration-after-statement -fno-PIC -O4 -march=prescott -mtune=prescott -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I.  -I./libavutil -I./libavcodec -o mplayer.o mplayer.c
In file included from mplayer.c:59:
libvo/font_load.h:5:22: error: ft2build.h: No such file or directory
libvo/font_load.h:6:10: error: #include expects "FILENAME" or <FILENAME>
In file included from mplayer.c:59:
libvo/font_load.h:40: error: expected specifier-qualifier-list before 'FT_Face'
make: *** [mplayer.o] 错误 1


此问题是因为当初安装编译环境的时候选择的是GTK1.2,更新为2.0既可顺利编译,解决了界面乱码问题!

代码: 全选

sudo apt-get install libgtk2.0-dev
回复

回到 “影音多媒体”