Hi All,

I am having some issues building Qt from SRC on Windows. I downloaded the
Qt Code:
  1. qt-everywhere-opensource-src-4.6.1.zip
To copy to clipboard, switch view to plain text mode 

I have hunted around the internet trying to solve my issue, to no avail. Just to get things organised this is the current specifications of my setup.

Os : Windows 7 Professional x64
Visual Studio 2010 Professional
Active State Perl ~ installed and configured

My path is setup with the aid of This Guide, the relevant commands such as nmake work as expected within cmd.

Now i have extracted the qt-community .zip contents into
C:\qt\qt461vc

As such this is where my QTDIR environmental variable is set to, i have also toyed around with just adding the directory to the PATH, this did not change anything i could see.

So in the root of Qt i execute configure and it spits out a lot of information. I will explain the process as follows.

Qt Code:
  1. c:\qt\qt461vc>configure
  2. Which edition of Qt do you want to use ?
  3. Type 'c' if you want to use the Commercial Edition.
  4. Type 'o' if you want to use the Open Source Edition.
  5. o
  6.  
  7. This is the Qt for Windows Open Source Edition.
  8.  
  9. You are licensed to use this software under the terms of
  10. the GNU Lesser General Public License (LGPL) version 2.1
  11. or the GNU General Public License (GPL) version 3.
  12.  
  13. Type '3' to view the GNU General Public License version 3 (GPLv3).
  14. Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
  15. Type 'y' to accept this license offer.
  16. Type 'n' to decline this license offer.
  17.  
  18. Do you accept the terms of the license?
  19. y
  20. All the required DirectShow/Direct3D files couldn't be found.
  21. Make sure you have either the platform SDK AND the DirectShow SDK or the Windows SDK installed.
  22. If you have the DirectShow SDK installed, please make sure that you have run the <path to SDK>\SetEnv.Cmd script.
  23. vmr9.h not found
  24. dshow.h not found
  25. strmiids.lib not found
  26. dmoguids.lib not found
  27. msdmo.lib not found
  28. d3d9.h not found
  29. Environment:
  30. INCLUDE=
  31. Unset
  32. LIB=
  33. Unset
  34. PATH=
  35. C:\Perl\site\bin
  36. C:\Perl\bin
  37. c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
  38. c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
  39. c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
  40. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
  41. C:\development\platforms\java\jdk\bin
  42. C:\development\libraries\java\qtjambi-4.6.3\bin
  43. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
  44. C:\qt\qt461\bin
  45. C:\qt\qt461vc\src
  46. C:\qt\qt461vc\include
  47. C:\qt\qt461vc\lib
  48. C:\qt\qt461vc\qmake\generators
  49. You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this software under th
  50. e terms of the Lesser GNU LGPL version 2.1.
  51. See C:/qt/qt461vc3
  52.  
  53. or C:/qt/qt461vcL
  54.  
  55. Configuration:
  56. minimal-config
  57. small-config
  58. medium-config
  59. large-config
  60. full-config
  61. build_all
  62. debug
  63. Qt Configuration:
  64. release
  65. debug
  66. zlib
  67. png
  68. accessibility
  69. qt3support
  70. opengl
  71. s60
  72. ipv6
  73. script
  74. scripttools
  75. multimedia
  76. multimedia
  77. audio-backend
  78. native-gestures
  79. svg
  80. minimal-config
  81. small-config
  82. medium-config
  83. large-config
  84. full-config
  85.  
  86. QMAKESPEC...................win32-msvc (detected)
  87. Architecture................windows
  88. Maketool....................nmake
  89. Debug symbols...............yes
  90. Link Time Code Generation...no
  91. Accessibility support.......yes
  92. STL support.................yes
  93. Exception support...........yes
  94. RTTI support................yes
  95. MMX support.................no
  96. 3DNOW support...............no
  97. SSE support.................no
  98. SSE2 support................no
  99. IWMMXT support..............no
  100. OpenGL support..............yes
  101. OpenVG support..............no
  102. OpenSSL support.............no
  103. QtDBus support..............no
  104. QtXmlPatterns support.......no
  105. Phonon support..............no
  106. QtMultimedia support........yes
  107. WebKit support..............no
  108. Declarative support.........no
  109. QtScript support............yes
  110. QtScriptTools support.......yes
  111. Graphics System.............raster
  112. Qt3 compatibility...........yes
  113.  
  114. Third Party Libraries:
  115. ZLIB support............qt
  116. GIF support.............plugin
  117. TIFF support............plugin
  118. JPEG support............plugin
  119. PNG support.............qt
  120. MNG support.............plugin
  121. FreeType support........no
  122.  
  123. Styles:
  124. Windows.................yes
  125. Windows XP..............no
  126. Windows Vista...........no
  127. Plastique...............yes
  128. Cleanlooks..............yes
  129. Motif...................yes
  130. CDE.....................yes
  131. Windows CE..............no
  132. Windows Mobile..........no
  133. S60.....................no
  134.  
  135. Sql Drivers:
  136. ODBC....................no
  137. MySQL...................no
  138. OCI.....................no
  139. PostgreSQL..............no
  140. TDS.....................no
  141. DB2.....................no
  142. SQLite..................plugin (qt)
  143. SQLite2.................no
  144. InterBase...............no
  145.  
  146. Sources are in..............C:\qt\qt461vc
  147. Build is done in............C:\qt\qt461vc
  148. Install prefix..............C:\qt\qt461vc
  149. Headers installed to........C:\qt\qt461vc\include
  150. Libraries installed to......C:\qt\qt461vc\lib
  151. Plugins installed to........C:\qt\qt461vc\plugins
  152. Binaries installed to.......C:\qt\qt461vc\bin
  153. Docs installed to...........C:\qt\qt461vc\doc
  154. Data installed to...........C:\qt\qt461vc
  155. Translations installed to...C:\qt\qt461vc\translations
  156. Examples installed to.......C:\qt\qt461vc\examples
  157. Demos installed to..........C:\qt\qt461vc\demos
  158.  
  159. Running syncqt...
To copy to clipboard, switch view to plain text mode 

Then there is a significant pause, as somethinng runs in the background followed by the following.
Qt Code:
  1. Creating qmake...
  2.  
  3. Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  4. Copyright (C) Microsoft Corporation. All rights reserved.
  5.  
  6. cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igener
  7. ators\symbian -IC:\qt\qt461vc\include -IC:\qt\qt461vc\include\QtCore -IC:\qt\qt461vc\include -IC:\qt\qt461vc\include\QtCore
  8. -IC:\qt\qt461vc\src\corelib\global -IC:\qt\qt461vc\src\corelib\xml -IC:\qt\qt461vc\mkspecs\win32-msvc -DQT_NO_TEXTCODEC
  9. -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_Q
  10. MAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQMAKE_OPENSOU
  11. RCE_EDITION project.cpp
  12. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135'
  13. Stop.
  14.  
  15. Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  16. Copyright (C) Microsoft Corporation. All rights reserved.
  17.  
  18. del qbitarray.obj
  19. Could Not Find C:\qt\qt461vc\qmake\qbitarray.obj
  20.  
  21. // .. etc for lots of del
To copy to clipboard, switch view to plain text mode 


Now the Could Not Find output statements are part of the Makefile clean, so they are to be expected when the build completely fails.

As a result i am reasonably sure the issue lies with the building of qmake, ie. this section of code.

Qt Code:
  1. Creating qmake...
  2.  
  3. Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  4. Copyright (C) Microsoft Corporation. All rights reserved.
  5.  
  6. cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igener
  7. ators\symbian -IC:\qt\qt461vc\include -IC:\qt\qt461vc\include\QtCore -IC:\qt\qt461vc\include -IC:\qt\qt461vc\include\QtCore
  8. -IC:\qt\qt461vc\src\corelib\global -IC:\qt\qt461vc\src\corelib\xml -IC:\qt\qt461vc\mkspecs\win32-msvc -DQT_NO_TEXTCODEC
  9. -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_Q
  10. MAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQMAKE_OPENSOU
  11. RCE_EDITION project.cpp
  12. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135'
  13. Stop.
To copy to clipboard, switch view to plain text mode 

A lot of people seem to be having this issue, however i am yet to resolve it through the numerous suggestions to check and fix the PATH Environmental Variables and Visual Studio Variables. I remember why i spend most of my time on Linux these days.

I should not during the configure i have also tried passing in the relevant -I and -L parameters, for the Windows SDK, however nothing has worked up until this point.