如果在编译的时候出现下面的错误:
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/mkspecs/linux-g++(即是linux-g++的路径)。
本文介绍了解决QMake配置问题的方法。当遇到QMAKESPEChasnotbeenset错误时,可以通过设置QMAKESPEC环境变量来解决。具体操作是在/root/.bash_profile中添加export QMAKESPEC=/usr/local/qt/mkspecs/linux-g++。
如果在编译的时候出现下面的错误:
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/mkspecs/linux-g++(即是linux-g++的路径)。
285
9398

被折叠的 条评论
为什么被折叠?