LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1798|回复: 6

[问题]xine-fontconv

[复制链接]
发表于 2005-7-11 12:40:14 | 显示全部楼层 |阅读模式
gcc -o xine-fontconv xine-fontconv.c `freetype-config --cflags --libs` -lz
的时候出现
bash: freetype-config: command not found
接着是一大堆的错误,估计就是和freetype-config有关

xine-fontconv.c:43:18: zlib.h: No such file or directory
xine-fontconv.c:47:22: ft2build.h: No such file or directory
xine-fontconv.c:48:10: #include expects "FILENAME" or <FILENAME>
xine-fontconv.c:49:10: #include expects "FILENAME" or <FILENAME>
xine-fontconv.c:112: error: syntax error before '*' token
xine-fontconv.c: In function `gzwrite_i16':
xine-fontconv.c:113: error: `fp' undeclared (first use in this function)
xine-fontconv.c:113: error: (Each undeclared identifier is reported only once
xine-fontconv.c:113: error: for each function it appears in.)
xine-fontconv.c:113: error: `number' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:234: error: syntax error before '*' token
xine-fontconv.c: In function `create_bitmap':
xine-fontconv.c:235: error: `FT_Bitmap' undeclared (first use in this function)
xine-fontconv.c:235: error: `bitmap' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:249: error: syntax error before '*' token
xine-fontconv.c: In function `destroy_bitmap':
xine-fontconv.c:250: error: `bitmap' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:262: error: syntax error before '*' token
xine-fontconv.c: In function `add_border_bitmap':
xine-fontconv.c:268: error: `src' undeclared (first use in this function)
xine-fontconv.c:272: error: `left' undeclared (first use in this function)
xine-fontconv.c:273: error: `dst' undeclared (first use in this function)
xine-fontconv.c:276: error: `top' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:304: error: syntax error before '*' token
xine-fontconv.c: In function `add_final_bitmap':
xine-fontconv.c:310: error: `src' undeclared (first use in this function)
xine-fontconv.c:314: error: `left' undeclared (first use in this function)
xine-fontconv.c:315: error: `dst' undeclared (first use in this function)
xine-fontconv.c:318: error: `top' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:339: error: syntax error before "face"
xine-fontconv.c: In function `render_font':
xine-fontconv.c:343: error: `FT_Bitmap' undeclared (first use in this function)
xine-fontconv.c:343: error: `out_bitmap' undeclared (first use in this function)
xine-fontconv.c:344: error: `gzFile' undeclared (first use in this function)
xine-fontconv.c:344: error: `fp' undeclared (first use in this function)
xine-fontconv.c:348: error: `FT_Glyph' undeclared (first use in this function)
xine-fontconv.c:348: error: syntax error before "glyph"
xine-fontconv.c:349: error: `FT_BitmapGlyph' undeclared (first use in this function)
xine-fontconv.c:350: error: `FT_Vector' undeclared (first use in this function)
xine-fontconv.c:366: error: `fontname' undeclared (first use in this function)
xine-fontconv.c:366: error: `size' undeclared (first use in this function)
xine-fontconv.c:389: error: `face' undeclared (first use in this function)
xine-fontconv.c:398: error: `thickness' undeclared (first use in this function)
xine-fontconv.c:408: error: `unicodes' undeclared (first use in this function)
xine-fontconv.c:419: error: `FT_LOAD_DEFAULT' undeclared (first use in this function)
xine-fontconv.c:458: error: `glyph' undeclared (first use in this function)
xine-fontconv.c:466: error: `origin' undeclared (first use in this function)
xine-fontconv.c:470: error: `ft_render_mode_normal' undeclared (first use in this function)
xine-fontconv.c:478: error: `glyph_bitmap' undeclared (first use in this function)
xine-fontconv.c:478: error: syntax error before "glyph"
xine-fontconv.c: In function `main':
xine-fontconv.c:533: error: `FT_Library' undeclared (first use in this function)
xine-fontconv.c:533: error: syntax error before "library"
xine-fontconv.c:534: error: `FT_Face' undeclared (first use in this function)
xine-fontconv.c:559: error: `library' undeclared (first use in this function)
xine-fontconv.c:568: error: `face' undeclared (first use in this function)
xine-fontconv.c:573: error: `ft_encoding_unicode' undeclared (first use in this function)


现在该怎么办呢?谢谢各位大虾
发表于 2005-7-12 13:47:28 | 显示全部楼层
这里
http://www.linuxfans.org/nuke/mo ... eninfo&did=1804
可以下载已经编译好的这个程序.
回复 支持 反对

使用道具 举报

发表于 2005-7-12 15:24:57 | 显示全部楼层
这里有一个在hoary下编译的,下载附件解压就可以了,呵呵!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-12 17:37:11 | 显示全部楼层
  非常感谢~  :thank
回复 支持 反对

使用道具 举报

发表于 2005-7-22 16:59:09 | 显示全部楼层
很奇怪我编译xine-fontconv.c也是报一堆错
bash: freetype-config: command not found
xine-fontconv.c:43:18: zlib.h: No such file or directory
xine-fontconv.c:47:22: ft2build.h: No such file or directory
xine-fontconv.c:48:10: #include expects "FILENAME" or <FILENAME>
xine-fontconv.c:49:10: #include expects "FILENAME" or <FILENAME>
xine-fontconv.c:112: error: syntax error before '*' token
xine-fontconv.c: In function `gzwrite_i16':
xine-fontconv.c:113: error: `fp' undeclared (first use in this function)
xine-fontconv.c:113: error: (Each undeclared identifier is reported only once
xine-fontconv.c:113: error: for each function it appears in.)
xine-fontconv.c:113: error: `number' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:234: error: syntax error before '*' token
xine-fontconv.c: In function `create_bitmap':
xine-fontconv.c:235: error: `FT_Bitmap' undeclared (first use in this function)
xine-fontconv.c:235: error: `bitmap' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:249: error: syntax error before '*' token
xine-fontconv.c: In function `destroy_bitmap':
xine-fontconv.c:250: error: `bitmap' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:262: error: syntax error before '*' token
xine-fontconv.c: In function `add_border_bitmap':
xine-fontconv.c:268: error: `src' undeclared (first use in this function)
xine-fontconv.c:272: error: `left' undeclared (first use in this function)
xine-fontconv.c:273: error: `dst' undeclared (first use in this function)
xine-fontconv.c:276: error: `top' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:304: error: syntax error before '*' token
xine-fontconv.c: In function `add_final_bitmap':
xine-fontconv.c:310: error: `src' undeclared (first use in this function)
xine-fontconv.c:314: error: `left' undeclared (first use in this function)
xine-fontconv.c:315: error: `dst' undeclared (first use in this function)
xine-fontconv.c:318: error: `top' undeclared (first use in this function)
xine-fontconv.c: At top level:
xine-fontconv.c:339: error: syntax error before "face"
xine-fontconv.c: In function `render_font':
xine-fontconv.c:343: error: `FT_Bitmap' undeclared (first use in this function)
xine-fontconv.c:343: error: `out_bitmap' undeclared (first use in this function)
xine-fontconv.c:344: error: `gzFile' undeclared (first use in this function)
xine-fontconv.c:344: error: `fp' undeclared (first use in this function)
xine-fontconv.c:348: error: `FT_Glyph' undeclared (first use in this function)
xine-fontconv.c:348: error: syntax error before "glyph"
xine-fontconv.c:349: error: `FT_BitmapGlyph' undeclared (first use in this funct
ion)
xine-fontconv.c:350: error: `FT_Vector' undeclared (first use in this function)
xine-fontconv.c:366: error: `fontname' undeclared (first use in this function)
xine-fontconv.c:366: error: `size' undeclared (first use in this function)
xine-fontconv.c:389: error: `face' undeclared (first use in this function)
xine-fontconv.c:398: error: `thickness' undeclared (first use in this function)
xine-fontconv.c:408: error: `unicodes' undeclared (first use in this function)
xine-fontconv.c:419: error: `FT_LOAD_DEFAULT' undeclared (first use in this func
tion)
xine-fontconv.c:458: error: `glyph' undeclared (first use in this function)
xine-fontconv.c:466: error: `origin' undeclared (first use in this function)
xine-fontconv.c:470: error: `ft_render_mode_normal' undeclared (first use in thi
s function)
xine-fontconv.c:478: error: `glyph_bitmap' undeclared (first use in this functio
n)
xine-fontconv.c:478: error: syntax error before "glyph"
xine-fontconv.c: In function `main':
xine-fontconv.c:533: error: `FT_Library' undeclared (first use in this function)
xine-fontconv.c:533: error: syntax error before "library"
xine-fontconv.c:534: error: `FT_Face' undeclared (first use in this function)
xine-fontconv.c:559: error: `library' undeclared (first use in this function)
xine-fontconv.c:568: error: `face' undeclared (first use in this function)
xine-fontconv.c:573: error: `ft_encoding_unicode' undeclared (first use in this
function)

下载了楼上两个地址的xine-fontconv    可是却无法使用  
aphia@SUN:~/a$ ls
simhei.ttf  xine-fontconv
aphia@SUN:~/a$ ./xine-fontconv simhei.ttf simhei gbk
bash: ./xine-fontconv: Permission denied
aphia@SUN:~/a$ sudo ./xine-fontconv simhei.ttf simhei gbk
sudo: ./xine-fontconv: command not found
aphia@SUN:~/a$

折腾了一下午都快疯了

谁能帮帮忙么?  谢谢了
回复 支持 反对

使用道具 举报

发表于 2005-7-22 23:56:40 | 显示全部楼层
我今天刚把字幕问题解决了
我编译时也出了一堆错
我下了3楼给的xine-fontconv
用右键->save link as下来的是一个html文件,把html的后缀名去掉就可以用

看看你的xine-fontconv文件的权限,确保有执行的权限
回复 支持 反对

使用道具 举报

发表于 2005-7-23 08:50:37 | 显示全部楼层
谢谢了,原来真是xine-fontconv的执行权限问题                  
我是新手,太多不懂了,看来要好好找本书看看了

最可恶totem的srt字幕问题解决了,可是mplayer死活有问题,一播视频就死。  
看来暂时只能用totem/xine+srt解决字幕问题了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表