Results 1 to 4 of 4

Thread: Cannot configure -platform win32-msvc2008, no nmake.exe

  1. #1
    Join Date
    Aug 2008
    Posts
    7
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Cannot configure -platform win32-msvc2008, no nmake.exe

    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:

    Qt Code:
    1. C:\Libraries\Qt>configure -platform win32-msvc2008
    2. Reading license file in.....C:\Documents and Settings\Jason/.qt-license
    3.  
    4. This is the Qt/Windows DesktopLight Edition.
    5.  
    6. You are licensed to use this software under the terms of
    7. the Qt COMMERCIAL LICENSE AGREEMENT.
    8.  
    9. Type '?' to view the Qt COMMERCIAL LICENSE AGREEMENT.
    10. Type 'y' to accept this license offer.
    11. Type 'n' to decline this license offer.
    12.  
    13. Do you accept the terms of the license?
    14. y
    15. Setting Direct3D to NO, since the proper Direct3D SDK was not detected.
    16. Make sure you have the Direct3D SDK installed, and that you have run
    17. the <path to SDK>\Utilities\Bin\dx_setenv.cmd script.
    18. The D3D SDK library path *needs* to appear before the Platform SDK library
    19. path in your LIB environment variable.
    20. All the required DirectShow/Direct3D files couldn't be found.
    21. Make sure you have either the platform SDK AND the DirectX SDK or the Windows SD
    22. K installed.
    23. If you have the DirectX SDK installed, please make sure that you have run the <p
    24. ath to SDK>\SetEnv.Cmd script.
    25. Environment:
    26. INCLUDE=
    27. Unset
    28. LIB=
    29. C:\Program Files\SQLXML 4.0\bin\
    30. PATH=
    31. C:\WINDOWS\system32
    32. C:\WINDOWS
    33. C:\WINDOWS\System32\Wbem
    34. C:\Program Files\TortoiseSVN\bin
    35. C:\Documents and Settings\Jason\My Documents\Downloads\Aircrack\aircrack-n
    36. g-1.0-rc1-win\bin
    37. C:\Program Files\Microsoft SQL Server\80\Tools\Binn\
    38. C:\Program Files\Microsoft SQL Server\90\DTS\Binn\
    39. C:\Program Files\Microsoft SQL Server\90\Tools\binn\
    40. C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\
    41. C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
    42. c:\Libraries\Qt\bin
    43. Licensee....................Bryan Neumann
    44. License ID..................1541400
    45. Product license.............DesktopLight Edition
    46. Expiry Date.................
    47.  
    48. Configuration:
    49. dist-config
    50. large-config
    51. medium-config
    52. minimal-config
    53. small-config
    54. full-config
    55. build_all
    56. debug
    57. Qt Configuration:
    58. release
    59. debug
    60. zlib
    61. png
    62. accessibility
    63. qt3support
    64. opengl
    65. ipv6
    66. xmlpatterns
    67. webkit
    68. svg
    69. minimal-config
    70. small-config
    71. medium-config
    72. large-config
    73. full-config
    74.  
    75. QMAKESPEC...................win32-msvc2008 (commandline)
    76. Architecture................windows
    77. Maketool....................nmake
    78. Debug symbols...............yes
    79. Accessibility support.......yes
    80. STL support.................yes
    81. Exception support...........yes
    82. RTTI support................yes
    83. MMX support.................yes
    84. 3DNOW support...............no
    85. SSE support.................yes
    86. SSE2 support................yes
    87. IWMMXT support..............no
    88. OpenGL support..............yes
    89. Direct3D support............no
    90. OpenSSL support.............no
    91. QtDBus support..............no
    92. QtXmlPatterns support.......yes
    93. Phonon support..............no
    94. WebKit support..............yes
    95. Qt3 compatibility...........yes
    96.  
    97. Third Party Libraries:
    98. ZLIB support............qt
    99. GIF support.............plugin
    100. TIFF support............plugin
    101. JPEG support............plugin
    102. PNG support.............qt
    103. MNG support.............plugin
    104.  
    105. Styles:
    106. Windows.................yes
    107. Windows XP..............no
    108. Windows Vista...........no
    109. Plastique...............yes
    110. Cleanlooks..............yes
    111. Motif...................yes
    112. CDE.....................yes
    113. Windows CE..............no
    114. Windows Mobile..........no
    115.  
    116. Sql Drivers:
    117. ODBC....................no
    118. MySQL...................no
    119. OCI.....................no
    120. PostgreSQL..............no
    121. TDS.....................no
    122. DB2.....................no
    123. SQLite..................plugin (qt)
    124. SQLite2.................no
    125. InterBase...............no
    126.  
    127. Sources are in..............C:\Libraries\Qt
    128. Build is done in............C:\Libraries\Qt
    129. Install prefix..............C:\Libraries\Qt
    130. Headers installed to........C:\Libraries\Qt\include
    131. Libraries installed to......C:\Libraries\Qt\lib
    132. Plugins installed to........C:\Libraries\Qt\plugins
    133. Binaries installed to.......C:\Libraries\Qt\bin
    134. Docs installed to...........C:\Libraries\Qt\doc
    135. Data installed to...........C:\Libraries\Qt
    136. Translations installed to...C:\Libraries\Qt\translations
    137. Examples installed to.......C:\Libraries\Qt\examples
    138. Demos installed to..........C:\Libraries\Qt\demos
    139.  
    140. Creating qmake...
    141. execute: File or path is not found (nmake)
    142. execute: File or path is not found (nmake)
    143. Cleaning qmake failed, return code -1
    To copy to clipboard, switch view to plain text mode 

    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:

    Qt Code:
    1. error C2838: 'lexical_cast' : illegal qualified name in member declaration
    2. c:\libraries\qt\src\corelib\kernel\qobjectdefs.h
    3. error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    4. c:\libraries\qt\src\corelib\kernel\qobjectdefs.h
    5. error C2208: 'const int' : no members defined using this type
    6. c:\libraries\qt\src\corelib\kernel\qobjectdefs.h
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot configure -platform win32-msvc2008, no nmake.exe

    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.

  3. The following user says thank you to jacek for this useful post:

    Jason Hamilton (30th August 2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    7
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot configure -platform win32-msvc2008, no nmake.exe

    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:

    Qt Code:
    1. 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 -
    2. IC:\Libraries\Qt\src\corelib\global -IC:\Libraries\Qt\include\QtScript -IC:\Libraries\Qt\mkspecs\win32-msvc2008 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT
    3. _LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFI
    4. G_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT
    5. _NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED project.cpp
    6. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
    7. \cl.EXE"' : return code '0xc0000135'
    8. Stop.
    9. Building qmake failed, return code 2
    To copy to clipboard, switch view to plain text mode 

    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

  5. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot configure -platform win32-msvc2008, no nmake.exe

    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.

Similar Threads

  1. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.