【发布时间】:2011-11-30 05:46:21
【问题描述】:
我编译了 qt (qt-everywhere-opensource-src-4.7.4) 使用:
./configure --prefix=/edrive/local/qt
gmake && gmake install
当我想使用qmake 创建新项目时,会创建包含路径错误的 Makefile 并指向错误的二进制文件和库目录:
> qmake -query "QT_INSTALL_PREFIX"
/edrive/local
在 Makefile 中
包括:
-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
【问题讨论】: