LinuxSir.cn,穿越时空的Linuxsir!

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

编译QT4出错!

[复制链接]
发表于 2005-9-22 10:39:38 | 显示全部楼层 |阅读模式
我编译了GCC-4.0.2-pre20050917,本想编译QT4.0.1的,但在编译过程中出现如下错误提示:

lQtCore -lz -lpthread -ldl
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2-pre20050917/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld 返回 1
make[3]: *** [../../lib/libQtOpenGL.so.4.0.1] 错误 1
make[3]: Leaving directory `/var/tmp/portage/qt-4.0.1/work/qt-x11-opensource-src-4.0.1/src/opengl'
make[2]: *** [release-all] 错误 2
make[2]: Leaving directory `/var/tmp/portage/qt-4.0.1/work/qt-x11-opensource-src-4.0.1/src/opengl'
make[1]: *** [sub-opengl-all-ordered] 错误 2
make[1]: Leaving directory `/var/tmp/portage/qt-4.0.1/work/qt-x11-opensource-src-4.0.1/src'
make: *** [sub-src-all-ordered] 错误 2

!!! ERROR: x11-libs/qt-4.0.1 failed.
!!! Function src_compile, Line 132, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

请问是什么问题? :thank
发表于 2005-9-22 10:40:36 | 显示全部楼层
have you installed opengl ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-22 10:52:43 | 显示全部楼层
应该没有,如何查看?
回复 支持 反对

使用道具 举报

发表于 2005-9-22 10:58:42 | 显示全部楼层
if you do not have opengl installed, qt should not built-in opengl support,

should be a bug in ebuild
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-22 11:13:53 | 显示全部楼层
那我能不能用USE="-opengl" emerge qt来编译呢?
回复 支持 反对

使用道具 举报

发表于 2005-9-22 11:35:11 | 显示全部楼层
Post by ldh168
那我能不能用USE="-opengl" emerge qt来编译呢?


理论上好像可以, 但最好别这样, 我会选择先编译opengl的, 毕竟你也希望qt稳定吧。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-22 11:39:09 | 显示全部楼层
我在emerge -pv opengl时显示如下:

#emerge -pv opengl

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

Calculating dependencies ...done!
[ebuild     U ] x11-base/xorg-x11-6.8.2-r5 [6.8.2-r3] -3dfx +3dnow +bitmap-fonts +cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers +ipv6 -minimal +mmx +nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts -type1-fonts (-uclibc) -xprint +xv 45,134 kB

Total size of downloads: 45,134 kB


这是怎么一回事啊?
回复 支持 反对

使用道具 举报

发表于 2005-9-22 12:02:00 | 显示全部楼层
什么怎么回事?
回复 支持 反对

使用道具 举报

发表于 2005-9-22 12:15:34 | 显示全部楼层
opengl应该是xorg的一部分,所以emerge opengl实际是emerge xorg-x11.

不知道说得对不对。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-22 14:22:25 | 显示全部楼层
中午重新emerge xorg-x11,现正在emerge qt,不知好了没。
回复 支持 反对

使用道具 举报

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

本版积分规则

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