LinuxSir.cn,穿越时空的Linuxsir!

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

编译xorg7.3的makedepend-1.0.1包失败了

[复制链接]
发表于 2007-10-4 10:48:49 | 显示全部楼层 |阅读模式
说是要设置X_CFLAGS或是 X_LIBS?

  1. + cd makedepend-1.0.1/
  2. + CC='gcc -m32'
  3. + CXX='g++ -m32'
  4. + PKG_CONFIG_PATH=/usr/lib/pkgconfig
  5. + ./configure --prefix=/usr/X11R7 --sysconfdir=/etc --localstatedir=/var
  6. checking for a BSD-compatible install... /bin/install -c
  7. checking whether build environment is sane... yes
  8. checking for gawk... gawk
  9. checking whether make sets $(MAKE)... yes
  10. checking for gcc... gcc -m32
  11. checking for C compiler default output file name... a.out
  12. checking whether the C compiler works... yes
  13. checking whether we are cross compiling... no
  14. checking for suffix of executables...
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc -m32 accepts -g... yes
  18. checking for gcc -m32 option to accept ANSI C... none needed
  19. checking for style of include used by make... GNU
  20. checking dependency style of gcc -m32... gcc3
  21. checking return type of signal handlers... void
  22. checking for rename... yes
  23. checking for fchmod... yes
  24. checking for special C compiler options needed for large files... no
  25. checking for _FILE_OFFSET_BITS value needed for large files... 64
  26. checking for _LARGE_FILES value needed for large files... no
  27. checking for pkg-config... /usr/bin/pkg-config
  28. checking pkg-config is at least version 0.9.0... yes
  29. checking for X... configure: error: Package requirements (xproto) were not met.
  30. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  31. installed software in a non-standard prefix.

  32. Alternatively you may set the X_CFLAGS and X_LIBS environment variables
  33. to avoid the need to call pkg-config.  See the pkg-config man page for
  34. more details.
复制代码


我要怎么设置X_CFLAGS或是 X_LIBS ?

以下是我的环境设置
  1. ACLOCAL='aclocal -I /usr/X11R7/share/aclocal'
  2. PKG_CONFIG_PATH32=/usr/lib/pkgconfig
  3. PKG_CONFIG_PATH64=/usr/lib64/pkgconfig
  4. PKG_CONFIG_PATHN32=/usr/lib32/pkgconfig
  5. XORG_PREFIX=/usr/X11R7
  6. XORG_CONFIG32='--prefix=/usr/X11R7 --sysconfdir=/etc --localstatedir=/var'
  7. XORG_CONFIG64='--prefix=/usr/X11R7 --libdir=/usr/X11R7/lib64 --sysconfdir=/etc --localstatedir=/var'
  8. XORG_CONFIGN32='--prefix=/usr/X11R7 --libdir=/usr/X11R7/lib32 --sysconfdir=/etc --localstatedir=/var'
复制代码
发表于 2007-10-4 12:49:51 | 显示全部楼层
在 $PKG_CONFIG_PATH32 缺少必須的库,可能是有依赖的包没有安装 ( 32bit )。

看手册
http://cblfs.cross-lfs.org/index.php/Xorg7/Utilities

Xorg7/Utilities
------------------------------------------------------------
Required
pkg-config
Protocol Headers
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-4 13:39:24 | 显示全部楼层
我已经安装过了pkg-config这个包了,32和64位都安装了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-4 14:41:26 | 显示全部楼层
问题解决了,将/usr/X11R6/lib目录加入到pkg-config的配置中就可以了,之前只入了/usr/X11R6/lib64。结果在编译32位的程序失败了
回复 支持 反对

使用道具 举报

发表于 2009-4-9 23:00:45 | 显示全部楼层
Post by echo;1762835
问题解决了,将/usr/X11R6/lib目录加入到pkg-config的配置中就可以了,之前只入了/usr/X11R6/lib64。结果在编译32位的程序失败了

我遇见了和你一样的问题,你具体是怎么解决的啊,这里"将/usr/X11R6/lib目录加入到pkg-config的配置中就可以了"如何加啊:我是新手.
回复 支持 反对

使用道具 举报

发表于 2010-1-6 10:41:47 | 显示全部楼层
Post by echo;1762835
问题解决了,将/usr/X11R6/lib目录加入到pkg-config的配置中就可以了,之前只入了/usr/X11R6/lib64。结果在编译32位的程序失败了


楼主,解答一下吧,我和楼上是同样的问题,这个“将/usr/X11R6/lib目录加入到pkg-config的配置”应该怎么操作啊?
回复 支持 反对

使用道具 举报

发表于 2010-3-10 09:57:48 | 显示全部楼层
export下

export PKG_CONFIG_PATH="/usr/x11R7/lib:/lib/pkgconfig:/usr/lib/pkgconfig:/usr/x11R7/lib/pkgconfig"
回复 支持 反对

使用道具 举报

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

本版积分规则

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