
The build system will automatically detect your compiler, so you don't need QMAKESPEC. %QTDIR\binYou don't need to set any environment variables. Where did you get your instructions for building Qt 5? Here is a good guide: Just ignore the part about git - You can use qt-everywhere-opensource-src531.zipīut I'm curious: Why do you want to compile Qt yourself, instead of downloading a precompiled package? Why do you use MSVC 2010 instead of MSVC 2013? = Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré = Tous droits rÚservÚs.ġ> "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile.Debugġ> echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST / "debug\">debug\TutoQt.exe_manifest.rcġ> if not exist debug\TutoQt.exe if exist debug\ del debug\ġ> if exist debug\ copy /Y debug\ debug\TutoQt.exe_manifest.bakġ> link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:debug\ /OUT:debug\TutoQt.exe : fatal error LNK1104: impossible d'ouvrir le fichier 'C:\Qt\5.3.1\qtbase\lib\Qt5Guid.lib'ġ>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.EXE"'á: code retour '0x450'ġ>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"'á: code retour '0x2'ġ>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\(38,5): error MSB3073: La commande "qmake & nmake" s'est arrêtée avec le code 2.
#include builded it again, and this time, here is the error from VS2010 : the Qt5Guid.lib is not found (it does not exist on my PC !!!)ġ> Microsoft (R) Program Maintenance Utility Version 9.01ġ> Copyright (C) Microsoft Corporation. I tried to change the %QTDIR% variable to "C:\Qt\5.3.1\qtbase" and change the main.cpp as this The qapplication.h is in the " C:\Qt\5.3.1\qtbase\include\QtWidgets" directory !! I was supprised to see that the bin, lib, include directories were not in the "C:\Qt\5.3.1" directory, but in the " C:\Qt\5.3.1\qtbase" directory !! Return lauched the build, and received different errors : " Could not find the qapplication.h" !!! QObject::connect(&bouton, SIGNAL(clicked()), &app, SLOT(quit())) QPushButton bouton("Bonjour les Zéros !") I wrote the main.cpp with the basic Qt example Problem n☂ : I lauched VS2010, set up a new makefile Project with different settings :
Problem n☁ : the compilation sent me an error : "The Directx SDK bould not be detected. The compilation lasted 1 hour and 15 minutes (old PC centrino 2 but with a SSD disk). I launched the following command : "configure & nmake & nmake clean"
I changed the current directory with a "cd %QTDIR%" I have downloaded the source code " qt-everywhere-opensource-src531.zip".Īfter unpacking the source files in C:\Qt\5.3.1 directory, I set up environment variables.