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

来源:互联网 发布:网络大电影数据 编辑:程序博客网 时间:2024/05/21 16:43

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

Error processing project file: XXXXX.pro
参考文章:
http://qtnode.net/wiki/Qt4_with_Visual_Studio

个人在2011.4.3也编译过4.7.2,不过当时编译完之后就没有用,直到今后,要编译itemviews-ng(Itemviews – The Next Generation),它依赖Qt4.7,它做什么的,查一文档吧,中文的帮助很少, 个人在Youtube视频上看到的KDE资源管理器就用了它, 下面是一下能缩放大小的表格,


在环境变量加上:

QMAKESPEC = win32-msvc2008

附linux下解决办法:

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

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

参考网址