Results 1 to 6 of 6

Thread: How to compile the Qt 4.6 release in VS2008?

  1. #1
    Join Date
    Oct 2009
    Posts
    32
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question How to compile the Qt 4.6 release in VS2008?

    I need integrate the Qt 4.6 release into VS2008. The step as follow:
    1. Add the $QTDir\bin to the PATH variable
    2. Run the Vcvarsall.bat
    3. Configure -platform win32-msvc2008
    4. nmake(or compile the project.sln).

    It work correct before the step 4. It work error in the step 4.
    The error message as follow(compile the project.sln).
    Error 1 fatal error C1083: Cannot open compiler generated file: 'tmp\obj\debug_shared" /link /dll /out:xml.dll': Invalid argument c:\Qt\2009.05\qt\src\xmlpatterns\xml.h 1

    Error 2 fatal error LNK1181: cannot open input file 'c:\Qt\2009.05\qt\lib\QtXmlPatternsd4.lib' xmlpatterns

    It can compile the Qt 4.5.3 successful when I use the above step.
    The qt version I compiled is open source version.
    How to solve it? thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to compile the Qt 4.6 release in VS2008?

    You seem to be using the Qt SDK . This wont work with Visual Studio.
    You need to download the Qt source for Windows and compile.

    Better still, you have Qt binary for VS 2008. which you can use easily

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

    tszzp (15th December 2009)

  4. #3
    Join Date
    Oct 2009
    Posts
    32
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to compile the Qt 4.6 release in VS2008?

    Thank you for your help. I compile successful the Qt source for Windows(Qt 4.6), but can't compile successful in Qt SDK 4.6. What's the difference in Qt SDK and Qt source for windows? Now I current use the Qt SDK 4.5.3, I can compile it successful, then can develop some program base on Qt SDK 4.5.3, then work correct. thanks.

  5. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to compile the Qt 4.6 release in VS2008?

    Qt SDK contains pre-built libraries , built with Mingw. You cannot use that with Visual Studio. However you can use it with Qt Creator which will use MinGW to compile.

    If you want to use Visual Studio,,,you have to compile Qt from source or download binary for VS 2008 as mentioned in last post.

  6. #5
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to compile the Qt 4.6 release in VS2008?

    I have mingw latest version with gcc 4.4 (TMC) on win xp sp3 32bit
    I don't want QtCreator.
    Is there a place to download the libraries (debug and release) and dev header files for gcc4.4/mingw?
    Is it one of the files qt-sdk-win-opensource* in ftp://ftp.qt.nokia.com/qtsdk/?

    regards,

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

    Default Re: How to compile the Qt 4.6 release in VS2008?


Similar Threads

  1. Compile Application in XCode for Release. How?
    By Alex Snet in forum Installation and Deployment
    Replies: 7
    Last Post: 3rd February 2009, 09:16
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. 4.4tp with vs2008 compile problem
    By Teerayoot in forum Installation and Deployment
    Replies: 1
    Last Post: 11th January 2008, 06:56
  5. Compile of big generated file in release stuck
    By Equilibrium in forum Qt Programming
    Replies: 4
    Last Post: 31st December 2007, 12:25

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.