当我尝试Qt Creator
从 source构建时出现以下错误。
user@host:/usr/share/qtcreator/qtcreator_build$ qmake -version
QMake version 2.01a
Using Qt version 4.8.2 in /usr/local/Trolltech/Qt-4.8.2/lib
user@host:/usr/share/qtcreator/qtcreator_build$ sudo qmake ../qtcreator_fromSrc/qtcreator.pro
Project MESSAGE: Cannot build Qt Creator with Qt version 4.6.2.
Project ERROR: Use at least Qt 4.7.4.
如图所示,Qt
上面使用的库是 4.8.2,它应该是 4.7.2 版。它是从源安装的。如何让qtcreator
安装程序识别正确的qt
版本?