|
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)
现在该怎么办呢?谢谢各位大虾 |
|