Results 1 to 7 of 7

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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

    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

  2. #2
    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 16:59.

  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 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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 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.


  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

    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, 12:29
  2. Failure to build qt 4.5.1
    By doggrant in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2009, 15:47
  3. Replies: 2
    Last Post: 15th October 2008, 19: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, 18:04
  5. Build Debug Libraries : Failure
    By oetzi in forum Installation and Deployment
    Replies: 4
    Last Post: 14th October 2007, 12: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
  •  
Qt is a trademark of The Qt Company.