找回密码
 注册
查看: 748|回复: 10

升级libXft的问题[已解决]

[复制链接]
发表于 2004-10-12 16:53:15 | 显示全部楼层 |阅读模式
升级中文Portage的libXft时,遇到下面错误:
[code:1]

xftfreetype.c: In function `XftFontInfoFill':
xftfreetype.c:529: error: `FC_EMBEDDED_BITMAP' undeclared (first use in this function)
xftfreetype.c:529: error: (Each undeclared identifier is reported only once
xftfreetype.c:529: error: for each function it appears in.)
xftfreetype.c:568: error: `FC_USE_GAMMA' undeclared (first use in this function)make[1]: *** [xftfreetype.lo] 错误 1
make[1]: *** 正在等待未完成的任务....
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -I/usr/X11R6/include -O3 -march=pentium3 -pipe -fomit-frame-pointer -MT xftglyphs.lo -MD -MP -MF .deps/xftglyphs.Tpo -c xftglyphs.c  -fPIC -DPIC -o .libs/xftglyphs.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -I/usr/X11R6/include -O3 -march=pentium3 -pipe -fomit-frame-pointer -MT xftglyphs.lo -MD -MP -MF .deps/xftglyphs.Tpo -c xftglyphs.c -o xftglyphs.o >/dev/null 2>&1
make[1]: Leaving directory `/var/tmp/portage/libXft-2.1.6/work/libXft-2.1.6'
make: *** [all] 错误 2

!!! ERROR: x11-libs/libXft-2.1.6 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! Xft2 make failed
!!! If you need support, post the topmost build error, NOT this status message.

[/code:1]
求教如何解决。
发表于 2004-10-12 17:21:08 | 显示全部楼层
得先装好中文portage里的freetype和fontconfig。
回复

使用道具 举报

 楼主| 发表于 2004-10-12 17:28:44 | 显示全部楼层
装完了
我是emerge -O freetype fontconfig libXft
前两个都很正常的安装完成
只有libXft出现了这个错误
回复

使用道具 举报

发表于 2004-10-12 17:33:40 | 显示全部楼层
你的xorg.x11装的是哪个版本?
回复

使用道具 举报

 楼主| 发表于 2004-10-12 17:40:35 | 显示全部楼层
怎么看xorg的版本
回复

使用道具 举报

发表于 2004-10-12 18:06:46 | 显示全部楼层
Xorg -version
回复

使用道具 举报

 楼主| 发表于 2004-10-12 19:20:22 | 显示全部楼层
[quote:61d8d2b884="felix"]Xorg -version[/quote]
[code:1]

X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.8-gentoo-r4 i686 [ELF]
Current Operating System: Linux piers 2.6.8-gentoo-r4 #1 Mon Sep 27 07:01:54 GMT 2004 i686
Build Date: 27 September 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present

[/code:1]
回复

使用道具 举报

发表于 2004-10-12 21:21:25 | 显示全部楼层
emerge -pDv freetype fontconfig看看
回复

使用道具 举报

 楼主| 发表于 2004-10-12 21:32:16 | 显示全部楼层
[quote:5a0dbd7c38="sunmoon1997"]emerge -pDv freetype fontconfig看看[/quote]
[code:1]

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/freetype-2.1.5-r1  -bindist +cjk -debug -doc -glc +zl ib 0 kB [1]
[ebuild   R   ] media-libs/fontconfig-2.2.3  -glc 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage

[/code:1]
回复

使用道具 举报

发表于 2004-10-12 21:55:46 | 显示全部楼层
[quote:6049514987="yUseLinux"][quote:6049514987="sunmoon1997"]emerge -pDv freetype fontconfig看看[/quote]
[code:1]

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/freetype-2.1.5-r1  -bindist +cjk -debug -doc [-glc +zl ib 0 kB [1]
[ebuild   R   ] media-libs/fontconfig-2.2.3  -glc 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage

[/code:1][/quote]
把glc加入到/etc/make.conf里的USE中。。
回复

使用道具 举报

 楼主| 发表于 2004-10-13 07:51:53 | 显示全部楼层
Thanks a lot.
明1997兄,多谢!
已经解决了。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-13 06:26 , Processed in 0.023086 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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