我没能建立Qt

时间:2017-02-18 18:20:23

标签: c++ qt user-interface building

我想为我的Windows机器构建Qt,但它不起作用。

我从名为Qt-5.8.0-build:

的目录进入
..\Qt-5.8.0-src\configure.bat -debug-and-release -platform win32-g++ -prefix C:\Qt\Qt-5.8.0-bin-x64

但是我遇到了一些错误:

C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp: In static member function 'static Compiler Environment::detectCompiler()':
C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:144:50: error: 'KEY_WOW64_32KEY' was not declared in this scope
                                                  KEY_WOW64_32KEY).toLower();
                                                  ^
C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp: In static member function 'static QString Environment::execute(const QString&, int*)':
C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:389:60: error: '_popen' was not declared in this scope
     FILE *proc = _popen(command.toLatin1().constData(), "r");
                                                            ^
C:/Qt/Qt-5.8.0-src/qtbase/tools/configure/environment.cpp:399:29: error: '_pclose' was not declared in this scope
         int r = _pclose(proc);
                             ^
<builtin>: recipe for target 'environment.o' failed
mingw32-make: *** [environment.o] Error 1

我该怎么做才能让它发挥作用?

感谢您的帮助

0 个答案:

没有答案