Results 1 to 5 of 5

Thread: how to compile with msvc express 2008

  1. #1
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default how to compile with msvc express 2008

    I buid my qt static in release mode as described in the wiki and I got a executable that
    works fine in other machines without Qt. The size of the file is around 7Mb, I think its to big for my small aplication. I am using mingw in Qt Creator and windows Vista.

    Now I'm trying to compile with visual express 2008, to see if the size of the file decreases.

    How do I compile with visual exprees 2008 ????

    It will be enought to put the QMAKESPEC set to win32_msvc2008 ?????

    I tried QMAKESPEC=c:\qt\4.4.3.\bin\mkspecs\win32-msvc2008 and got an error

    help

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to compile with msvc express 2008

    Quote Originally Posted by john_god View Post
    ...and got an error
    So you got an error?
    Nice!
    Could you please provide the error message?

    You can create a VS project with qmake.
    Run "qmake -t vcapp" in the directory where your pro file lies (c:\qt\4.4.3.\bin should be in the PATH environment variable).

  3. #3
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: how to compile with msvc express 2008

    The error, translated from portuguese, is something like:

    'qmakespec' is not recognizible as a internal or external comand, operacional program or batch file

    I don't want to create a visual studio project, want to keep using qt creator, and change from mingw to microsoft compiler, can I do that ???

    BTW I used the qt comand line

  4. #4
    Join Date
    Mar 2009
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to compile with msvc express 2008

    Of course you can use Qt Creator with the Microsoft Compiler. But you will need a Qt, built with the Microsoft C++ compiler - either the one shipped with the platform SDK or Visual C++ Express.
    To compile Qt with msvc you will have to open a command prompt with the appropriate environment set. The Qt command prompt that comes with Qt Creator is for the MinGW gcc compiler. Thou shalt not mix environments.

    Then you configure Qt like this:
    configure -platform win32-msvc2005
    or
    configure -platform win32-msvc2008
    depending on the compiler version you're using. After that type "nmake" and the Qt build starts. Then you can set up your new Qt version in the build settings of Qt Creator and start to use it.

  5. The following user says thank you to Private_Parts for this useful post:

    john_god (22nd March 2009)

  6. #5
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: how to compile with msvc express 2008

    Thanks PrivateParts, I did that and it work but Im gonna stick with the mingw.
    Qt with Visualc express cost me another 10Gb of hard disk, and I got errors with a project that I have, errors related with the math.h library, but it works fine with mingw.

Similar Threads

  1. msvc++ 2008 express and msvc++ 2005 express
    By vonCZ in forum Installation and Deployment
    Replies: 4
    Last Post: 9th December 2008, 12:15
  2. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  3. Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1
    By BrainB0ne in forum Installation and Deployment
    Replies: 3
    Last Post: 19th August 2008, 15:49
  4. Qt 4.4 OSE and MSVC 2008 problem
    By The Storm in forum Installation and Deployment
    Replies: 1
    Last Post: 26th June 2008, 22:55
  5. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18

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.