GTK+安装的问题
我下了GTK+2.8的,先configure不通过,然后下了atk, glib, pango, cairo,
Glib和Atk都已经安装成功,
但是在configure pango的时候说需要cairo,
然后我去装cairo, configure的时候它又说需要freetype,我把freetype装好了之后再来configure还是不能通过,请教怎么解决?
错误提示:
configure: error: Cairo requires at least on font backend.
Please install freetype and fontconfig, then try again
configure: error: Cairo requires at least on font backend.
Please install freetype and fontconfig, then try again
郁闷,Cairo倒装上去了,只是在装Pango的时候出来错误:
.../cairosimple.c:82: undefined reference to 'cairo_surface_write_to_png'
是否Cairo没装对?还是什么Dependency的原因? 正是fontconfig的原因,呵呵,谢谢,不知道上面这个是什么原因,请教 也许是cairo版本的问题吧,这个就不清楚了。 版本?我用的是最新的1.0版本 感觉还是Dependency,在configure的最后出来这么几行:
cairo will be compiled with the following surface backends:
Xlib: no (requires Xrender http://freedesktop.org/Software/xlibs)
Quartz: no
XCB: no
Win32: no
PostScript: no
PDF: no
glitz: no
the following font backends:
FreeType: yes
Win32: no
ATSUI: no
and the following features:
PNG functions: yes 是否应该先安装XLib?
我找了网站,结果一大堆Dependency,
不知道有没有RPM包? 你需要安装X的开发库。
如果png编译不过,又不是必需的功能的话,disable掉。
你是用什么系统?LFS吗?有必要全部从源码安装吗? 除了GUI方面的,其他的都需要从源码来安装,OK,我安装一下X的开发库,谢谢 郁闷,Cairo倒装上去了,只是在装Pango的时候出来错误:
.../cairosimple.c:82: undefined reference to 'cairo_surface_write_to_png'
是否Cairo没装对?还是什么Dependency的原因?
后来怎么解决的?
我现在也遇到相同的问题. 由于我在没有安装cario lib的时候先install 了pango, 也就是说pango没有cario支持, 现在连Gnome都进不去了. 现在cario是装上去了, pango倒编译不通过了. 我现在也遇到相同的问题 我现在终于回到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
页:
[1]