Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Compiling Qt 5.3.1 under Visual Studio 2010 Professional (windows 7 - 64 bits)

$
0
0
Hello, I am a newbies with Qt (from France). I have downloaded the source code “qt-everywhere-opensource-src531.zip”. After unpacking the source files in C:\Qt\5.3.1 directory, I set up environment variables. QMAKESPEC = win32-msvc2010 QTDIR = C:\Qt\5.3.1 Path = ….;%QTDIR\bin\ Then I open the VS2010 console. I changed the current directory with a “cd QTDIR” I launched the following command : “configure & nmake & nmake clean” The compilation lasted 1 hour and 15 minutes (old PC centrino 2 but with a SSD disk). Problem n°1 : the compilation sent me an error : “The Directx SDK bould not be detected … disabling the ANGE backend. I went further. Problem n°2 : I lauched VS2010, set up a new makefile Project with different settings : Exe directory : $(QTDIR)\bin Include directory : $(QTDIR)\include Library directory : $(QTDIR)\lib I wrote the main.cpp with the basic Qt example : #include <QtGui/qapplication.h> #include <QtGui/qpushButton.h> int main(int argc, char *argv[]) {     QApplication app(argc, argv);     QPushButton bouton("Bonjour les Zéros !");     bouton.show();     QObject::connect(&bouton, SIGNAL(clicked()), &app, SLOT(quit()));     return app.exec(); } I lauched the build, and received different errors : “Could not find the qapplication.h” !!! 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 !! The qapplication.h is in the “C:\Qt\5.3.1\qtbase\include\QtWidgets” directory !! Why ???? I tried to change the QTDIR variable to “C:\Qt\5.3.1\qtbase” and change the main.cpp as this : #include <QtWidgets/qapplication.h> #include <QtWidgets/qpushbutton.h> I 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 !!!) 1>Build: 1> 1> Microsoft ® Program Maintenance Utility Version 10.00.30319.01 1> Copyright © Microsoft Corporation. Tous droits rÚservÚs. 1> 1> “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe” -f Makefile.Debug 1> 1> Microsoft ® Program Maintenance Utility Version 10.00.30319.01 1> Copyright © Microsoft Corporation. Tous droits rÚservÚs. 1> 1> echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST */ “debug\\TutoQt.exe.embed.manifest”>debug\TutoQt.exe_manifest.rc 1> if not exist debug\TutoQt.exe if exist debug\TutoQt.exe.embed.manifest del debug\TutoQt.exe.embed.manifest 1> if exist debug\TutoQt.exe.embed.manifest copy /Y debug\TutoQt.exe.embed.manifest debug\TutoQt.exe_manifest.bak 1> link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS “/MANIFESTDEPENDENCY:type=‘win32’ name=‘Microsoft.Windows.Common-Controls’ version=‘6.0.0.0’ publicKeyToken=‘6595b64144ccf1df’ language=‘‘ processorArchitecture=’’” /MANIFEST /MANIFESTFILE:debug\TutoQt.exe.embed.manifest /OUT:debug\TutoQt.exe @C:\Users\EMMANU~1.GUI\AppData\Local\Temp\nm6325.tmp 1>LINK : fatal error LNK1104: impossible d’ouvrir le fichier ‘C:\Qt\5.3.1\qtbase\lib\Qt5Guid.lib’ 1>NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.EXE”‘á: code retour ‘0×450’ 1> Stop. 1>NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe”‘á: code retour ‘0×2’ 1> Stop. 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: La commande “qmake & nmake” s’est arrêtée avec le code 2. 1> 1>ÉCHEC de la build. 1> 1>Temps écoulé 00:00:01.02 ====== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ====== Here it is ! Could you help me ? Thanks a lot for all.

Viewing all articles
Browse latest Browse all 2113

Trending Articles