Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
I failed to build Qt
I want to build Qt for my windows machine but it doesn't work.
I entered from a directory called 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
But I got some errors:
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
What could I do to make it work?
Thanks for help
![alt text](image url)
koahnig last edited by
Yes, I did
Which compiler are you using exactly ?
I'm using the MinGW g++ 5.3.0 compiler
32 or 64 bit ?
Gravak last edited by Gravak
I'm using 64 bit
I installed mingw-w64 and now I have the 6.3.0 version. It works now but there are a lot of other problems:
At the end of configure it checks the gold linker and then a window appears with the text: ld.gold.exe doesn't work anymore. My options are "Debug" and "Close program". When I use the second it continues with checking things. Then I type mingw32-make -j4 and then: it compiles but suddenly there are a lot of problems. The entry point "_ZdaPvy" was not found in the DLL ...\rcc.exe. It appears more than one time. After this there are ptoblems like "waiting for unfinished jobs" and then compiling was aborted
Take a look at this thread.
ocroquette last edited by
The entry point "_ZdaPvy" was not found in the DLL ...\rcc.exe
I had the same problem and found no solution online, so in case someone else has the same issue:
This error can occur if you have another, incompatible version of libstdc++-6.dll in your PATH. Make sure that the right one is found first, e.g. that it's location appears soon enough in the PATH environment variable.
SherifOmran last edited by
This issue occurs if you open the command line (visual studio) and try to compile Qt. Please try to open cmd from an old Qt ex 5.9.1 and try from it to compile, this should use the mingw32-make from 5.9.1 for example, otherwise you should correct the path.
rakasmo Banned last edited by rakasmo
This post is deleted!