Compiling source Qt 4.7.4 on windows 7 error qmake is not an internal or external command
-
wrote on 28 Sept 2011, 23:16 last edited by
No! No! No!
Never rebuild Qt from a prebuilt binary distribution or the SDK sources and never copy binaries from one installation to another one or a another source tree.
Always download the vanilla sources and run
@
configure.exe -with -your -options
nmake
@from the Visual Studio command prompt.
This is the only way known to always work reliably.
If you need different builds of the same Qt version, you must use different source tree directories!
PS:
Check the configure ouput whether it has picked up the right mkspec for you. If not, override it with -platform xyz. -
wrote on 28 Sept 2011, 23:23 last edited by
Ok, thanks. I will first
- Uninstall QtSDK
- Delete all files in the qteverywhere folder. Delete the source zip.
- Remove path set in the environment variable PATH.
- Download new source from a different branch and try again.
In case that fails, ill post back with the errors.
Thanks.
-
wrote on 28 Sept 2011, 23:34 last edited by
It shouldn't be necessary to delete the SDK.
-
wrote on 28 Sept 2011, 23:35 last edited by
Ok, thanks. Ill start over again tomorrow.
-
wrote on 29 Sept 2011, 20:50 last edited by
Issue persists - As mentioned in earlier post I cleared all previous environment variables and downloaded a new source.
This is where I downloaded the source from
"http://qt.gitorious.org/qt/qt/trees/v4.7.4
Environment variable settings -
Path : C:\development\referencebuilds\qt\4.7.4\qt-qt\bin
QMAKESPEC : win32-msvc2008
Command Prompt - visual studio 2008
Source folder - C:\development\referencebuilds\qt\4.7.4\qt-qt\
Steps -
Downloaded src
-
configure.exe -opensource -fast -no-accessibility -no-qt3support -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-webkit -no-scripttools -platform win32-msvc2005 -D “_BIND_TO_CURRENT_VCLIBS_VERSION=1”
-
nmake
The error I get is
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qmake C:/development/r
eferencebuilds/qt/4.7.4/qt-qt/\projects.pro -o Makefile -spec win32-msvc2008
'C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qmake' is not recognized as a
n internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qm
ake' : return code '0x1'
Stop. -
-
wrote on 29 Sept 2011, 22:32 last edited by
You should get the tarball from the "Qt download page":http://qt.nokia.com/downloads/downloads#qt-lib. Grab the source zip, unpack it and follow the steps I've mentioned.
A gitorious checkout is usually not meant for production use and you will need additional tools to prepare the source tree. The zip/tar.gz from the download page is ready to configure.
-
wrote on 29 Sept 2011, 22:34 last edited by
Ok , sure.
-
wrote on 30 Sept 2011, 17:28 last edited by
Ok , so this is what is happening. The steps mentioned by you works fine on my machine , which is a windows 7. It fails with error on the following machine where I am trying to install by remote login(using windows 7 remote desktop application)
OS: Windows Server Standard,
System - Processor : Quad-Core AMD Opteron(tm) Processor 2360 SE 2.50 Ghz (2 processors)
System type: 64-bit .The error I get is -
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7
.4\bin\qmake C:/development/referencebuilds/qt/4.7.4/qt-everywhere-opensource-sr
c-4.7.4/\projects.pro -o Makefile -spec win32-msvc2008
'C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin
qmake' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-everywher
e-opensource-src-4.7.4\bin\qmake' : return code '0x1'
Stop. -
wrote on 1 Oct 2011, 06:51 last edited by
It would be better if you put the output between "@" signs (or use the rightmost button of the editor).
-
wrote on 1 Oct 2011, 22:41 last edited by
Sorry, I never tried to install Qt using a remote login, so I'm out at this point.
18/18