linux下编译QT出错:QMAKESPEC has not been set, so configuration cannot be deduced

来源:互联网 发布:迪普科技薪酬 知乎 编辑:程序博客网 时间:2024/05/17 16:57

如果编译时候出现错误: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

0 0
原创粉丝点击