Results 1 to 7 of 7

Thread: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

  1. #1
    Join Date
    May 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    1

    Wink MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    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.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    Do you open a visual studio command prompt to do the above or a standard command prompt? The former sets everything up to run CL, whereas the later doesn't and can cause the 0xc0000135 error (which means "Application could not initialise")

  3. #3
    Join Date
    May 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    1

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    I have tried both, basically every permutation i can. I installed VS 2008 instead and got a little further this time. I am currently just completely removing both versions of Visual Studio off my WinPC, resetting all the Env Vars to do a singular install of VS2008 Professional.

    I noticed in the very first blip of information that there are extra libraries required. Subsequently i am going to work progressively to install the required products and ensure everything is 100% correct.

    Qt Code:
    1. All the required DirectShow/Direct3D files couldn't be found.
    2. Make sure you have either the platform SDK AND the DirectShow SDK or the Windows SDK installed.
    3. If you have the DirectShow SDK installed, please make sure that you have run the <path to SDK>\SetEnv.Cmd script.
    4. vmr9.h not found
    5. dshow.h not found
    6. strmiids.lib not found
    7. dmoguids.lib not found
    8. msdmo.lib not found
    9. d3d9.h not found
    10. Environment:
    11. INCLUDE=
    12. Unset
    13. LIB=
    14. Unset
    15. PATH=
    16. C:\Perl\site\bin
    17. C:\Perl\bin
    18. c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\
    19. c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
    20. c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
    21. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
    22. C:\development\platforms\java\jdk\bin
    23. C:\development\libraries\java\qtjambi-4.6.3\bin
    24. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
    25. C:\qt\qt461\bin
    26. C:\qt\qt461vc\src
    27. C:\qt\qt461vc\include
    28. C:\qt\qt461vc\lib
    29. C:\qt\qt461vc\qmake\generators
    To copy to clipboard, switch view to plain text mode 

    So the statement
    Make sure you have either the platform SDK AND the DirectShow SDK or the Windows SDK installed.
    Is quite ambiguous, i have the Windows SDK installed and it has not helped. :/

    Apparently the DirectShow is provided in the Platform SDK and DirectX SDK

  4. #4
    Join Date
    May 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    1

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    Ok i still have not resolved the issues.

    I can confirm i have the Windows Platform SDK and the Direct-X SDK (June 2010) installed.

    I have executed the dx_setenv.cmd in the DirectX SDK and in my System Environmental Variables i have DXSDK_DIR set to
    Qt Code:
    1. C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\
    To copy to clipboard, switch view to plain text mode 

    I do not however have any entry referring to the Platform SDK.

    The headers and libs
    Qt Code:
    1. vmr9.h not found
    2. dshow.h not found
    3. strmiids.lib not found
    4. dmoguids.lib not found
    5. msdmo.lib not found
    6. d3d9.h not found
    To copy to clipboard, switch view to plain text mode 
    are contained within the sdk in the following folders and the DirectX include folders
    Qt Code:
    1. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\Lib
    2. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\Includes
    To copy to clipboard, switch view to plain text mode 

    Should there be an entry in my environmental variables for the platform SDK. I have run the SetEnv.cmd and also SetReg.exe just for the hell of it


    I would really like to get this sorted, if anyone can make a valid suggestion i would be most appreciative

    I have tried manually passing the locations using a command such as
    Qt Code:
    1. configure -platform win32-msvc -prefix "C:\qt\qt-shared" -shared -I "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include" -L "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib" -I "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\Include" -L "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\Lib"
    To copy to clipboard, switch view to plain text mode 

    However this does not seem to work. I can't work out where the configure is searching for the locations of the required libraries. Would it be something in the registry or an env var ??


    The error has changed, to the following now
    Qt Code:
    1. cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igener
    2. ators\symbian -IC:\qt\qtsrc\include -IC:\qt\qtsrc\include\QtCore -IC:\qt\qtsrc\include -IC:\qt\qtsrc\include\QtCore -IC:\q
    3. t\qtsrc\src\corelib\global -IC:\qt\qtsrc\src\corelib\xml -IC:\qt\qtsrc\mkspecs\win32-msvc -DQT_NO_TEXTCODEC -DQT_NO_UNICO
    4. DETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_T
    5. HREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQMAKE_OPENSOURCE_EDITION pr
    6. oject.cpp
    7. project.cpp
    8. project.cpp(62) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    9. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
    10. Stop.
    11. Building qmake failed, return code 2
    To copy to clipboard, switch view to plain text mode 

    Cannot find windows.h, funny thing is that it resides in the specified include directory
    Last edited by DaneAU; 3rd May 2011 at 17:59.

  5. #5
    Join Date
    May 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    1

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    I got around the missing includes and library files by modifying the environmental variables. Courtesy of some help over at MSDN

    I added to my User Environmental Variables to Following
    Qt Code:
    1. Variable=INCLUDE
    2. Value=<path to directx-sdk\Include>;<path to platform-sdk\Include>
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. Variable=LIB
    2. Value=<path to directx-sdk\Lib>;<path to platform-sdk\Lib>
    To copy to clipboard, switch view to plain text mode 

    This got me so far, i am stilling having a few issues building as it is now saying after qmake.exe is created that there is an error determining MAKESPEC

    I will deal with this in one moment

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    There is no "win32-msvc" platform. You should pass "win32-msvc2008" or "win32-msvc2010" as the platform name.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    May 2011
    Posts
    11
    Thanks
    2
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    1

    Default Re: MSVS2010 Proffesional - Cmd - Qt Community Edition SRC - Failure to Build 4.6.1

    Yep thanks for that, i worked that one out

    Also had to add the bin folder of Platform SDK to my PATH environmental variable because mt.exe is used

Similar Threads

  1. Error nmaking 4.7.2 with msvs2010
    By TorAn in forum Installation and Deployment
    Replies: 2
    Last Post: 17th April 2011, 13:29
  2. Failure to build qt 4.5.1
    By doggrant in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2009, 16:47
  3. Replies: 2
    Last Post: 15th October 2008, 20:49
  4. Failure to build Debug libs - Vista Mingw Qt 4.3.2
    By pmabie in forum Installation and Deployment
    Replies: 8
    Last Post: 15th October 2007, 19:04
  5. Build Debug Libraries : Failure
    By oetzi in forum Installation and Deployment
    Replies: 4
    Last Post: 14th October 2007, 13:29

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.