Build qt 5 with Visual Studio 2012
Hello community,
Im trying to build qt5 with VS2012 and Im curios which package I should download:
This http://releases.qt-project.org/qt5/5...-src-5.0.0.zip or this http://releases.qt-project.org/qt5/5...86-offline.exe ?
The second is precompiled for VS2010, so no need I guess.
And how to build it?
If I extract the everywhere src, cd to qtbase (is that right?) and start configuring it, I get and error that qmake is missing.
Edit: python and perl are installed and the bin dir is in PATH.
Re: Build qt 5 with Visual Studio 2012
follow the readme file or install file. Just configure in main folder not in qtbase.
Re: Build qt 5 with Visual Studio 2012
Ok thank you, I did exactly what was pointed out in the readme, call "configure -prefix %CD%\qtbase -opensource -nomake tests" in the 5.0.0 src directory and after a while it exited with:
Code:
Running syncqt...
<srcbase> = D:/Programmierung/C++/Qt/5.0.0/qtbase
<outbase> = D:/Programmierung/C++/Qt/5.0.0/qtbase
Creating qmake...
Microsoft (R) Program Maintenance Utility Version 11.00.51106.1
Copyright (C) Microsoft Corporation. All rights reserved.
Der Befehl "D:\Programmierung\C++\Qt\5.0.0\qtbase\bin\qmake.exe" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
QMake failed!
*** qtbase/configure exited with non-zero status.
D:\Programmierung\C++\Qt\5.0.0>
Its german and means that qmake.exe couldn't be found.
Re: Build qt 5 with Visual Studio 2012
QT_DIR\bin must be in PATH.
Re: Build qt 5 with Visual Studio 2012
With QTDIR\bin do you mean the bin directory under the general src directory where qtbase, qtactiveqt, qtdoc and the other modules are in? Because there is no bin directory.
QMake is generated though, but it resides in 5.0.0\qtbase\qmake, if I try to manually copy it to 5.0.0\qtbase\bin (should it be like that?), I can start the build.
And after a while, it stops with the following error message:
Code:
copy /y qmldir D:\Programmierung\C++\Qt\5.0.0\qtbase\qml\Qt\labs\folderl
istmodel\qmldir
Syntax error.
NMAKE : fatal error U1077: 'copy' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
D:\Programmierung\C++\Qt\5.0.0>