Problem building Qt 5.0.2 on Windows 7 using VS2012 configuration
-
Hi all,
during the build (nmake install step) of the new Qt 5.0.2 release (qt-everywhere-opensource-src-5.0.2) an error occurs.
I try to use the same three instructions like I did with previous release versions (always worked so far):configure -platform win32-msvc2012 -debug-and-release -opensource -opengl desktop -prefix "C:\Qt\Qt5.0.2-opengl"
nmake
nmake install
Anyhow, during nmake install there occurs following error:
@...
copy /y "........\plugins\printsupport\windowsprintersupport.dll" "C:\Qt\Qt5.0.2-opengl\plugins\printsupport\windowsprintersupport.dll"
1 file(s) copied.
cd examples\ && ( if not exist Makefile C:\Qt\depot\qt-everywhere-opensource-src-5.0.2\qtbase\bin\qmake C:\Qt\depot\qt-everywhere-opensource-src-5.0.2\qtbase\examples\examples.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile installMicrosoft (R) Program Maintenance Utility Version 11.00.51106.1
Copyright (C) Microsoft Corporation. All rights reserved.cd dbus\ && ( if not exist Makefile C:\Qt\depot\qt-everywhere-opensource-src-5.0.2\qtbase\bin\qmake C:\Qt\depot\qt-everywhere-opensource-src-5.0.2\qtbase\examples\dbus\dbus.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile install
Microsoft (R) Program Maintenance Utility Version 11.00.51106.1
Copyright (C) Microsoft Corporation. All rights reserved.NMAKE : fatal error U1073: don't know how to make 'install'
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.@Any suggestions are much appreciated :-)
-
Heya,
I have exactly the same problem.
"jom install" as well as "nmake install" stops because it cannot find the install target in the dbus example. -
Hi,
I am currently working on a serious qt project which was successfully built and developed previously in Linux with Qt4.5.x version on windows vista 64 bit machine using visual studio 2008.
And now I would like to continue my development on windows 7 home premium, 64 bit machine(Dell INSPRON laptop) with visual studio 2010(RTM) installed.
So I have recently downloaded qt-win-opensource-4.8.4-vs2010.exe from qt website and followed the instructions in this *"LINK":http://doc.qt.digia.com/4.7/install-win.html * .
Then i did a cmake(version: 2.8) to my project source code and it was successfully generated a new build for VS2010 WIn64. so i have opened and tried building my visual studio 2010 project solution file from my new build but it is giving me a
fatal error:LNK1112: module machine type 'X86' conflicts with target machine type 'x64', QtOpenGLd4.lib(QtOpenGLd4.dll).
Also
I have checked my VS2010-properties dialogue, Platform dropdown to "Active(x64)".
In the "Configuration Manager..." in the top right, selected the platform to x64.
went to Project Properties->Configuration Properties->Linker->Advanced->set the "Target Machine Platform" to MachineX64
(/MACHINE:X64).
So just for testing qt.8.4 on VS2010,
- i have just created one simple project using qt4 VS plugin like File->qt projects-> and started debugging it.it was working fine for 32bit platform and giving the output a sample GUI window.
- Again, just to test for 64bit platform,This time i have tried my setting my target platform to 64 bit by Right clicking on the project->Qt project settings->version(4.8.4) in properies->ok.
- Also went to Project Properties->Configuration Properties->Linker->Advanced->set the "Target Machine Platform" to MachineX64 (/MACHINE:X64).
- Then i debug the program, but it is not tagetting to 64bit platform and giving me the error saying that i have to set the qt version again.i went to qt settings again and checked it, there is no version number there?
just for testing my VS2010,
- I have created a simple hello world project and targeted to 64bit platform and debegged it. It is absolutely working fine.
- And i am able to debug and test all my sample Opengl programs targeting to 64bit.
Moreover i have updated my VS2010 ultimate to sevice pack 1, still the same fatal error:LNK1112: module machine type 'X86' conflicts with target machine type 'x64', QtOpenGLd4.lib(QtOpenGLd4.dll).
Finally I have come accross this link: http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/. but seems to be complicated for me to do as these istructions are using perl :
I couldn't able to figure it out , is this the problem with qt version i am using or the Visual studio version?or some compatibility issues with OpenGL? Can somebody please share your thoughts on this and help me?
Also please let me know is there a best way that i can build and develop my previous cmake buld projects developed with qt4.5.x using newer qt versions in windows7 64bit with supported Visual Studio versions?
Thanks in advance
Kumar -
I already answered your first post. Please don't hijack other's thread with multiple posting.
-
I did a clean build with "-nomake examples" and it works fine now.
-
Thank you! - I'll try that, too.
-
Building 5.1.0-rc1 on Windows 7 with MSVC2010, the dbus examples install correctly, but the embedded examples and qtwebkit-examples fail with this same "don't know how to make 'install'" error.
"-nomake examples -skip qtwebkit-examples" is the workaround.
-
Yes, same in 5.1.0-rc1, thank you for the workaround.
Up to now I always deleted the qtwebkit folder and used -nomake examples as well.