Results 1 to 7 of 7

Thread: Qt 4.3.2 + Visual studio 2008

  1. #1
    Join Date
    Aug 2006
    Posts
    83

    Default Qt 4.3.2 + Visual studio 2008

    Hi, I was just wondering if anyone has already tried to compile Qt with the new version of microsoft compiler, successfully that is ??

    I just compiled it successfully with visual studio 2008 c++ compiler, without any problems.
    Last edited by moowy; 20th November 2007 at 22:53. Reason: I answered my question :)

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.3.2 + Visual studio 2008

    Yes i try to load the ISO VS 2008 beta ... && install
    and QT4 is build quickly ....
    And the VS console envoirment make all qt setting on last minute...
    And i can continue to work on Mingw on a normal console... Why?
    Mingw error on build projekt is more easy to understanding :-)

  3. #3
    Join Date
    Apr 2007
    Posts
    44
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Qt 4.3.2 + Visual studio 2008

    moowy

    Could you write some tutorial.
    I had some problem,when compiling with vs2008 with mkspec win32-msvc2005.

  4. #4
    Join Date
    Aug 2006
    Posts
    83

    Default Re: Qt 4.3.2 + Visual studio 2008

    Hey,

    I used nothing special or extraordirnary:
    i defined QMAKESPEC and QTDIR variables and than configure, nmake(in visual studio command prompt) and everything compiled successfully .

  5. #5
    Join Date
    Aug 2007
    Location
    Ontario, Canada
    Posts
    22
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.3.2 + Visual studio 2008

    Are you using the Express version? I had professional working with 2005 but 2008 isnt compiling. I used default configure with win32-msvs2005 makespec. This is the last few dozen lines of nmake.

    lib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore" -I"..\.
    .\..\include\QtXml" -I"." -I"..\..\..\mkspecs\win32-msvc2005" -Fotmp\obj\release
    _shared\ @C:\DOCUME~1\Mark\LOCALS~1\Temp\nm878.tmp
    qdom.cpp
    qxmlutils_p.cpp
    qxml.cpp
    Generating Code...
    link /NOLOGO /INCREMENTAL:NO /SUBSYSTEM:CONSOLE /MANIFESTFILE:"tmp\obj\r
    elease_shared\rcc.intermediate.manifest" /OUT:..\..\..\bin\rcc.exe @C:\DOCUME~1\
    Mark\LOCALS~1\Temp\nm879.tmp
    qbytearray.obj : error LNK2019: unresolved external symbol _compress2 referenced
    in function "class QByteArray __cdecl qCompress(unsigned char const *,int,int)"
    (?qCompress@@YA?AVQByteArray@@PBEHH@Z)
    qbytearray.obj : error LNK2019: unresolved external symbol _uncompress reference
    d in function "class QByteArray __cdecl qUncompress(unsigned char const *,int)"
    (?qUncompress@@YA?AVQByteArray@@PBEH@Z)
    ..\..\..\bin\rcc.exe : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    C:\Qt-vs2008>

  6. #6
    Join Date
    Aug 2006
    Posts
    83

    Default Re: Qt 4.3.2 + Visual studio 2008

    I have successfully compiled it with express and team suite versions, so I think, that it does not matter which version of visual studio 2008 you use. They all have the same version of compiler.

  7. #7
    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: Qt 4.3.2 + Visual studio 2008

    @Cramed: this is not a compiler problem. You've zlib.h in your INCLUDE Paths somewhere. Therefore configure.exe thinks you want to use system zlib instead the one shipped with Qt. enable qt-zlib (see configure.exe --help hwo to do so). Also take a look what configure.exe tells you - it prints out all relevant things.

Similar Threads

  1. problems installing open src Qt 4.3.2 on MSVC2005
    By wiseguy in forum Installation and Deployment
    Replies: 10
    Last Post: 17th November 2007, 12:35
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Visual Studio App Wizard for Qt
    By joshlareau in forum Qt-based Software
    Replies: 4
    Last Post: 9th February 2007, 20:36
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

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.