QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1943|回复: 12

GTK+安装的问题

[复制链接]
发表于 2005-9-30 13:13:45 | 显示全部楼层 |阅读模式
我下了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
发表于 2005-9-30 14:06:55 | 显示全部楼层
configure: error: Cairo requires at least on font backend.
Please install freetype and fontconfig, then try again
回复

使用道具 举报

 楼主| 发表于 2005-9-30 14:24:38 | 显示全部楼层
郁闷,Cairo倒装上去了,只是在装Pango的时候出来错误:

.../cairosimple.c:82: undefined reference to 'cairo_surface_write_to_png'

是否Cairo没装对?还是什么Dependency的原因?
回复

使用道具 举报

 楼主| 发表于 2005-9-30 14:27:42 | 显示全部楼层
正是fontconfig的原因,呵呵,谢谢,不知道上面这个是什么原因,请教
回复

使用道具 举报

发表于 2005-9-30 16:14:28 | 显示全部楼层
也许是cairo版本的问题吧,这个就不清楚了。
回复

使用道具 举报

 楼主| 发表于 2005-9-30 16:36:10 | 显示全部楼层
版本?我用的是最新的1.0版本
回复

使用道具 举报

 楼主| 发表于 2005-9-30 16:41:08 | 显示全部楼层
感觉还是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
回复

使用道具 举报

 楼主| 发表于 2005-9-30 16:55:56 | 显示全部楼层
是否应该先安装XLib?
我找了网站,结果一大堆Dependency,
不知道有没有RPM包?
回复

使用道具 举报

发表于 2005-9-30 17:53:19 | 显示全部楼层
你需要安装X的开发库。
如果png编译不过,又不是必需的功能的话,disable掉。

你是用什么系统?LFS吗?有必要全部从源码安装吗?
回复

使用道具 举报

 楼主| 发表于 2005-10-8 08:00:36 | 显示全部楼层
除了GUI方面的,其他的都需要从源码来安装,OK,我安装一下X的开发库,谢谢
回复

使用道具 举报

发表于 2005-10-11 09:31:42 | 显示全部楼层
[quote:1dd48893dc="huales"]郁闷,Cairo倒装上去了,只是在装Pango的时候出来错误:

.../cairosimple.c:82: undefined reference to 'cairo_surface_write_to_png'

是否Cairo没装对?还是什么Dependency的原因?[/quote]

后来怎么解决的?

我现在也遇到相同的问题. 由于我在没有安装cario lib的时候先install 了pango, 也就是说pango没有cario支持, 现在连Gnome都进不去了. 现在cario是装上去了, pango倒编译不通过了.
回复

使用道具 举报

发表于 2005-10-11 14:34:30 | 显示全部楼层
我现在也遇到相同的问题
回复

使用道具 举报

发表于 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
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-24 03:27 , Processed in 0.092759 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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