标题:【提问】请教kdevelop3.3的安装问题
作者:matrix
日期:2006-01-18 11:46
内容:
昨天安装完qt-x11-4.1.0。修改了progile的PATH,在终端执行./designer正常, 从菜单执行Qt Designer也正常。调试examples程序也ok。因此认为安装没问题。
接着解压kdevelop-3.3.0,运行./configure,出现问题,停止:
......
......
checking for Qt... configure: error: Qt ( >= Qt 3.2 and < 4.0 ) ( headers and libraries ) not found. Please check your installation!
》》》这问题是指kdevelop3.3不支持qt4.1吗?
尝试把profile的path修改到原来的qt-x11-3.3.5, 重登陆后再运行./configure,则出现:
...
...
checking for Qt... configure: error: Qt ( >= Qt 3.2 and < 4.0 ) ( library qt -mt ) not found. Please check your installation!
》》》同样不能执行下去了。不知道什么原因。请高手指点,谢谢!!!
察看config.log文件,信息如下:(最后一段,很长)
...
configure:29788: checking for Qt
configure: 29856: /qt/qt-x11-free-3.3.5/include/qstyle.h
taking that
tried NO
tried /qt/qt-x11-free-3.3.5/lib
tried /qt/qt-x11-free-3.3.5
tried /usr/lib/qt3/lib
tried /usr/lib/qt3
tried /usr/lib/qt/lib
tried /usr/lib/qt
tried /usr/share/qt3/lib
tried /usr/share/qt3
tried /usr/X11R6/lib
tried /usr/lib
tried /usr/local/qt/lib
tried /usr/X11R6/lib
configure:29971: rm -rf SunWS_cache; g++ -o conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/qt/qt-x11-free-3.3.5/include -I/usr/X11R6/include-DQT_THREAD_SUPPORT-D_REENTRANT-LNONE -L/usr/X11R6/lib conftest.cc-lqt-mt -lpng -lz -lm -ljpeg -ldl-lXext -lX11 -lSM -lICE-lpthread 1>&5
/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
configure:29974: $? = 1
configure: failed program was:
#include "confdefs.h"
#include
#include
#include
#include
#include
#if ! (QT_VERSION >= 0x030200 && QT_VERSION < 0x04 ..
#1 [daniel_sue 01-18 15:56]
你有没有配置QTDIR这个环境变量啊?提示的错误是找不到QT啊
#2 [matrix 01-18 17:59]
有的。在安装qt4.1时就改变了profile的内容,
...
export QTDIR=/usr/local/Trolltech/Qt-4.1.0
export PATH=$QTDIR/CIN:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
...
也重新登陆了。
#3 [matrix 01-18 18:05]
而且我用RH9自带的kdevelop2.1,点击其工具栏下的Qt Designer,也可以正常打开Qt4.1。
#4 [matrix 01-18 18:45]
我在qt的外国论坛看到,说连kde3.4.2都不支持qt4.0.1。也就是那个QT (>3.3 or
#5 [XChinux 01-18 19:19]
首先你要搞清楚什么是KDevelop支持Qt4.
你现在是要安装KDevelop,而KDevelop是用Qt3.x写的,所以在编译的时候你要把QTDIR设置为QT3.x的路径,而不能使用Qt4的路径。