linux下配置QT QMAKESPEC has not been set, so configuration cannot be deduced

如果编译时候出现错误:QMAKESPEC has not been set, so configuration cannot be deduced.

Error processing project file: XXXXX.pro

是QMAKESPEC变量没有设置好,在/root/.bash_profile里加入一行:

export QMAKESPEC=/usr/local/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++(即是linux-g++的路径)。

参考网址

http://www.linuxdiyf.com/viewarticle.php?id=84027

你可能感兴趣的:(QT)