LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 889|回复: 0

编译xorg出错,看看什么问题?

[复制链接]
发表于 2005-3-12 10:02:44 | 显示全部楼层 |阅读模式

  1. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9] uname -a
  2. FreeBSD zhaoxq.singlee.com.cn 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Thu Mar
  3. 10 19:45:40 CST 2005     root@zhaoxq.singlee.com.cn:/usr/obj/usr/src/sys/GENERIC
  4.   i386
复制代码
我安装了mini,下载所有的src,ports,然后make world,现在准备装xorg,但在编译时出现了如下的问题:
  1. gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/local/include/freet
  2. ype2 -I/usr/local/include -I/usr/X11R6/include -g -O2 -MT xftfreetype.lo -MD -MP
  3. -MF .deps/xftfreetype.Tpo -c xftfreetype.c  -fPIC -DPIC -o .libs/xftfreetype.o
  4. xftfreetype.c: In function `XftFontInfoFill':
  5. xftfreetype.c:529: error: `FC_EMBEDDED_BITMAP' undeclared (first use in this fun
  6. ction)
  7. xftfreetype.c:529: error: (Each undeclared identifier is reported only once
  8. xftfreetype.c:529: error: for each function it appears in.)
  9. xftfreetype.c:568: error: `FC_USE_GAMMA' undeclared (first use in this function)

  10. *** Error code 1

  11. Stop in /usr/ports/x11-fonts/libXft/work/libXft-2.1.6.
  12. *** Error code 1

  13. Stop in /usr/ports/x11-fonts/libXft/work/libXft-2.1.6.
复制代码
请问现在该怎么解决?

在编译时我加了一个patch选项,在freebsdchina.org的公告里说的.
要怎么patch呢?我在freetype2下make patch然后make时出错.
  1. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9] ./configure
  2. GNU make (>= 3.79.1) or makepp (>= 1.19) is required to build FreeType2.
  3. Please try
  4.   `GNUMAKE=<GNU make command name> ./configure'.
  5. or >&2
  6.   `GNUMAKE="makepp --norc-substitution" ./configure'.
  7. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9] GNUMAKE=gmake
  8. ./configure --prefix=/usr/local
  9. GNUMAKE=gmake: Command not found.
  10. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9] GNUMAKE="make
  11. pp --norc-substitution" ./configure
  12. GNUMAKE=makepp --norc-substitution: Command not found.
  13. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9]


  14. [root@zhaoxq,ttyv0:/usr/ports/print/freetype2/work/freetype-2.1.9] gmake -v
  15. GNU Make 3.80
  16. Copyright (C) 2002  Free Software Foundation, Inc.
  17. This is free software; see the source for copying conditions.
  18. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
复制代码
看看我的版本是大于它的呀,为什么还说低了呢?

fontconfig也不行.
  1. configure: error: cannot find expat library
  2. [root@zhaoxq,ttyv1:/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.3] ./conf
  3. igure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man
复制代码

libXft也出错.
  1. configure: creating ./config.status
  2. config.status: creating Makefile
  3. config.status: creating xft.pc
  4. config.status: creating xft-config
  5. config.status: creating Xft.3
  6. config.status: creating config.h
  7. config.status: config.h is unchanged
  8. config.status: executing depfiles commands
  9. [root@zhaoxq,ttyv0:/usr/ports/x11-fonts/libXft/work/libXft-2.1.6] ./configure --
  10. prefix=/usr/X11R6
复制代码
不知道patch是怎么用的,该如何一步步的做下去呢?
这种问题我现在该如何解决?谢谢指点一下.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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