PDA

View Full Version : Cannot configure -platform win32-msvc2008, no nmake.exe



Jason Hamilton
30th August 2008, 16:31
Hey all,

So I think I'm having some major configuration issues. I've installed QT version 4.4.1 on my machine, Visual Studio 2008 standard (.NET 3.5 edition), the VS2008 SP1 (though that installation doesn't work well either; seperate issue) and the Visual Studio Integration package v1.4. However, when I try to configure QT using:

C:\Libraries\Qt> configure -platform win32-msvc2008

I get the following error:


C:\Libraries\Qt>configure -platform win32-msvc2008
Reading license file in.....C:\Documents and Settings\Jason/.qt-license

This is the Qt/Windows DesktopLight Edition.

You are licensed to use this software under the terms of
the Qt COMMERCIAL LICENSE AGREEMENT.

Type '?' to view the Qt COMMERCIAL LICENSE AGREEMENT.
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y
Setting Direct3D to NO, since the proper Direct3D SDK was not detected.
Make sure you have the Direct3D SDK installed, and that you have run
the <path to SDK>\Utilities\Bin\dx_setenv.cmd script.
The D3D SDK library path *needs* to appear before the Platform SDK library
path in your LIB environment variable.
All the required DirectShow/Direct3D files couldn't be found.
Make sure you have either the platform SDK AND the DirectX SDK or the Windows SD
K installed.
If you have the DirectX SDK installed, please make sure that you have run the <p
ath to SDK>\SetEnv.Cmd script.
Environment:
INCLUDE=
Unset
LIB=
C:\Program Files\SQLXML 4.0\bin\
PATH=
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\TortoiseSVN\bin
C:\Documents and Settings\Jason\My Documents\Downloads\Aircrack\aircrack-n
g-1.0-rc1-win\bin
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\
C:\Program Files\Microsoft SQL Server\90\Tools\binn\
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
c:\Libraries\Qt\bin
Licensee....................Bryan Neumann
License ID..................1541400
Product license.............DesktopLight Edition
Expiry Date.................

Configuration:
dist-config
large-config
medium-config
minimal-config
small-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
png
accessibility
qt3support
opengl
ipv6
xmlpatterns
webkit
svg
minimal-config
small-config
medium-config
large-config
full-config

QMAKESPEC...................win32-msvc2008 (commandline)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............no
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
Direct3D support............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............no
WebKit support..............yes
Qt3 compatibility...........yes

Third Party Libraries:
ZLIB support............qt
GIF support.............plugin
TIFF support............plugin
JPEG support............plugin
PNG support.............qt
MNG support.............plugin

Styles:
Windows.................yes
Windows XP..............no
Windows Vista...........no
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no

Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no

Sources are in..............C:\Libraries\Qt
Build is done in............C:\Libraries\Qt
Install prefix..............C:\Libraries\Qt
Headers installed to........C:\Libraries\Qt\include
Libraries installed to......C:\Libraries\Qt\lib
Plugins installed to........C:\Libraries\Qt\plugins
Binaries installed to.......C:\Libraries\Qt\bin
Docs installed to...........C:\Libraries\Qt\doc
Data installed to...........C:\Libraries\Qt
Translations installed to...C:\Libraries\Qt\translations
Examples installed to.......C:\Libraries\Qt\examples
Demos installed to..........C:\Libraries\Qt\demos

Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1

Given that this doesn't work, I guess I'm not surprised that I can't get my program, which uses the QT Library project to create a static library that links into my other project in the same solution, to build clean. In the 'for what it's worth' category, the error I get there reads:



error C2838: 'lexical_cast' : illegal qualified name in member declaration
c:\libraries\qt\src\corelib\kernel\qobjectdefs.h
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\libraries\qt\src\corelib\kernel\qobjectdefs.h
error C2208: 'const int' : no members defined using this type
c:\libraries\qt\src\corelib\kernel\qobjectdefs.h


Any help would be appreciate as I have been searching the web, forums, documentation, FAQs and such for half a day and can't find an answer to solve this problem. Thanks.

Jason

jacek
30th August 2008, 16:47
Run vsvars.bat script (or whatever it's called) from the console to set up environment variables and try configuring Qt once more. That script should be in Visual Studio's bin directory.

Jason Hamilton
30th August 2008, 20:09
I think we're headed in the right direction here, thanks. However, I now get a different error message when I run configure, although it seems to be eminating from cl.exe. The message reads:



cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -IC:\Libraries\Qt\include -IC:\Libraries\Qt\include\QtCore -IC:\Libraries\Qt\include -IC:\Libraries\Qt\include\QtCore -
IC:\Libraries\Qt\src\corelib\global -IC:\Libraries\Qt\include\QtScript -IC:\Libraries\Qt\mkspecs\win32-msvc2008 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT
_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFI
G_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT
_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED project.cpp
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
\cl.EXE"' : return code '0xc0000135'
Stop.
Building qmake failed, return code 2


Sorry to be so needy, but this stuff was working a few days ago, then I had to re-install my compiler and now I can't make anything work again.

Jason

ChristianEhrlicher
1st September 2008, 10:05
You still not used the correct config.
In your Start Menu Entry for MSVC 2008 you'll find something called 'MSVC 2008 Visual Studio Command Prompt' which sets all env vars correct. Compile Qt from this command prompt and all will work fine.