如果在编译的时候出现下面的错误:
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++的路径)。
如果在编译的时候出现下面的错误:
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++的路径)。