Qt静态编译无法读取路径

时间:2017-06-17 01:11:34

标签: c++ qt static

我使用Qt5.6.0 msvc和vs 2013,并且还安装python-2.7.12,当我编译Qt构建静态时,我收到此错误, 注意:驱动程序E不是主驱动器

    Cannot read E:/Qt/qt-everywhere-opensource-src-5.6.0/qtbase/mkspecs   /win32-msvc20
13 /qmake.conf: The system cannot find the path specified.
Could not read qmake configuration file E:/Qt/qt-everywhere-opensource-src-5.6.0
/qtbase/mkspecs/win32-msvc2013 /qmake.conf.
Error processing project file: E:\Qt\qt-everywhere-opensource-src-5.6.0\qt.pro
Qmake failed, return code 3

这是我在VS2013的Developer Command Prompt中使用的

- set QMAKESPEC=win32-msvc2013  
- set QTDIR=E:\Qt\QT-EVE~1.0\qtbase  
- set PATH=E:\Qt\QT-EVE~1.0\qtbase\bin;%PATH%  
- set PYTHONPATH=%E:\Python27%;E:\Python27\Lib 

- cd E:\Qt\qt-everywhere-opensource-src-5.6.0 
- configure -static -platform win32-msvc2013  -nomake examples -nomake tests -mp 

1 个答案:

答案 0 :(得分:0)

确定问题已解决,只需为Qt添加环境变量短路径

E:\Qt\QT-EVE~1.0\qtbase\bin;%PATH%;E:\Python27;E:\Python27\Lib