|
发表于 2005-10-12 00:09:43
|
显示全部楼层
我现在终于回到Gnome 里了。
../cairosimple.c:82: undefined reference to 'cairo_surface_write_to_png'
出错的原因是在安装 cairo 之前未正确安装libpng(makefile要用makefile.linux, prefix应该是/usr)。 如果系统没有安装或正确安装libpng的话,cairo 在configure的时候把PNG 自动disable掉了。所以在make pango的时候报错。
不过后来我的GTK 编译还是出错了。
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/X11R6/include -I/usr/X11R6/include -g -O2 -Wall -MT gdkdrawable-x11.lo -MD -MP -MF .deps/gdkdrawable-x11.Tpo -c gdkdrawable-x11.c -fPIC -DPIC -o .libs/gdkdrawable-x11.o
In file included from /usr/include/pango-1.0/pango/pangofc-font.h:25,
from /usr/include/pango-1.0/pango/pango-ot.h:25,
from /usr/include/pango-1.0/pango/pangoxft.h:27,
from gdkdrawable-x11.c:32:
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from /usr/include/pango-1.0/pango/pango-ot.h:25,
from /usr/include/pango-1.0/pango/pangoxft.h:27,
from gdkdrawable-x11.c:32:
/usr/include/pango-1.0/pango/pangofc-font.h:26:10: error: #include expects "FILENAME" or <FILENAME>
In file included from /usr/include/pango-1.0/pango/pango-ot.h:25,
from /usr/include/pango-1.0/pango/pangoxft.h:27,
from gdkdrawable-x11.c:32:
/usr/include/pango-1.0/pango/pangofc-font.h:144: error: syntax error before 'pango_fc_font_lock_face'
/usr/include/pango-1.0/pango/pangofc-font.h:144: warning: type defaults to 'int' in declaration of 'pango_fc_font_lock_face'/usr/include/pango-1.0/pango/pangofc-font.h:144: warning: data definition has no type or storage class
In file included from /usr/include/pango-1.0/pango/pangoxft-render.h:32,
from /usr/include/pango-1.0/pango/pangoxft.h:30,
from gdkdrawable-x11.c:32:
/usr/X11R6/include/X11/Xft/Xft.h:41:10: error: #include expects "FILENAME" or <FILENAME>
In file included from /usr/include/pango-1.0/pango/pangoxft-render.h:32,
from /usr/include/pango-1.0/pango/pangoxft.h:30,
from gdkdrawable-x11.c:32:
/usr/X11R6/include/X11/Xft/Xft.h:58: error: syntax error before '_XftFTlibrary'
/usr/X11R6/include/X11/Xft/Xft.h:58: warning: type defaults to 'int' in declaration of '_XftFTlibrary'
/usr/X11R6/include/X11/Xft/Xft.h:58: warning: data definition has no type or storage class
/usr/X11R6/include/X11/Xft/Xft.h:92: error: syntax error before 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:92: warning: no semicolon at end of struct or union
/usr/X11R6/include/X11/Xft/Xft.h:95: error: syntax error before '}' token
/usr/X11R6/include/X11/Xft/Xft.h:95: warning: type defaults to 'int' in declaration of 'XftGlyphSpec'
/usr/X11R6/include/X11/Xft/Xft.h:95: warning: data definition has no type or storage class
/usr/X11R6/include/X11/Xft/Xft.h:99: error: syntax error before 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:99: warning: no semicolon at end of struct or union
/usr/X11R6/include/X11/Xft/Xft.h:102: error: syntax error before '}' token
/usr/X11R6/include/X11/Xft/Xft.h:102: warning: type defaults to 'int' in declaration of 'XftGlyphFontSpec'
/usr/X11R6/include/X11/Xft/Xft.h:102: warning: data definition has no type or storage class
/usr/X11R6/include/X11/Xft/Xft.h:196: warning: type defaults to 'int' in declaration of 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:196: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:262: warning: type defaults to 'int' in declaration of 'XftGlyphSpec'
/usr/X11R6/include/X11/Xft/Xft.h:262: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:268: warning: type defaults to 'int' in declaration of 'XftGlyphFontSpec'
/usr/X11R6/include/X11/Xft/Xft.h:268: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:301: warning: type defaults to 'int' in declaration of 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:301: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:360: error: syntax error before 'XftLockFace'
/usr/X11R6/include/X11/Xft/Xft.h:360: warning: type defaults to 'int' in declaration of 'XftLockFace'
/usr/X11R6/include/X11/Xft/Xft.h:360: warning: data definition has no type or storage class
/usr/X11R6/include/X11/Xft/Xft.h:399: warning: type defaults to 'int' in declaration of 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:399: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:405: warning: type defaults to 'int' in declaration of 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:405: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:414: error: syntax error before 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:424: error: syntax error before 'XftCharIndex'
/usr/X11R6/include/X11/Xft/Xft.h:426: warning: type defaults to 'int' in declaration of 'XftCharIndex'
/usr/X11R6/include/X11/Xft/Xft.h:426: warning: data definition has no type or storage class
/usr/X11R6/include/X11/Xft/Xft.h:467: warning: type defaults to 'int' in declaration of 'FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:467: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:478: warning: type defaults to 'int' in declaration of 'XftGlyphSpec'
/usr/X11R6/include/X11/Xft/Xft.h:478: error: syntax error before '*' token
/usr/X11R6/include/X11/Xft/Xft.h:499: warning: type defaults to 'int' in declaration of 'XftGlyphFontSpec'
/usr/X11R6/include/X11/Xft/Xft.h:499: error: syntax error before '*' token
In file included from /usr/include/pango-1.0/pango/pangoxft.h:30,
from gdkdrawable-x11.c:32:
/usr/include/pango-1.0/pango/pangoxft-render.h:95: error: syntax error before 'XftGlyphSpec'
真是搞大了,查了一下,好像按照PANGO的安装说明还有老多的LIB要安装。
http://cvs.gnome.org/viewcvs/*checkout*/pango/README |
|