3
我编译QT(QT-比比皆是 - 开源-SRC-4.7.4):QMAKE在Linux上使用Qt的安装路径不正确使用
./configure --prefix=/edrive/local/qt
gmake && gmake install
当我要做出新的项目,在qmake
创建Makefile中使用错误包括路径和指向错误的二进制文件和库目录:
> qmake -query "QT_INSTALL_PREFIX"
/edrive/local
包括:
个-I/edrive/local/include/QtCore
-I/edrive/local/include/QtGui
-I/edrive/local/include
库:
-L/edrive/local/lib
UIC:
/edrive/local/bin/uic
这是因为QT安装在/edrive/local/qt
显然是错误的。
有没有办法解决这个短小的手动修改qt配置文件? 我做错了什么?
顺便说一句,它是选择正确的qmake:
> which qmake
/edrive/local/bin/qt/qmake
我想我打电话给正确的qmake,但qmake得到了错误:'>/edrive/local/bin/qt/qmake -query“QT_INSTALL_PREFIX” /edrive/local'。我尝试设置新路径,但查询仍输出相同的结果... – stefanB
嗯,我的观点是,如果你的--prefix是/ edrive/local/qt,那么路径应该是/ edrive/local/qt/bin,而不是/ edrive/local/bin/qt,如果你明白我的意思。不过,你可以用'qmake -set'重新设置前缀' – favoretti
我明白了......我终止了终端并重新启动,现在一切正常 - 奇怪,我找到了我的配置文件几次我猜想搞糊涂了.... – stefanB