简体   繁体   English

Qt静态编译无法读取路径

[英]Qt static compile cannot read path

i use Qt5.6.0 msvc , and vs 2013, and install python-2.7.12 also, when I compile Qt to build static, i get this error, Note: driver E not the main drive 我使用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

this is the what i used in Developer Command Prompt for VS2013 这就是我在VS2013开发人员命令提示符中使用的内容

- 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 

好的问题已解决,只需添加环境变量Qt的短路径

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM