Results 1 to 3 of 3

Thread: making qmake create VisualStudio console app project file?

  1. #1
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question making qmake create VisualStudio console app project file?

    I'm trying to use qmake in a cross-platform environment, where I'd use it to create Visual Studio project files under Windows. I'm using the following construct in the qmake project file:

    win32 {
    TEMPLATE = vcapp
    }

    and them have QMAKESPEC=win32-msvc2008, then indeed, qmake createa Visual Studio project file for me. but, the project file is a 'windows' application project (e.g. with the linker flag: /subsystem:windows), and of course it's looking for WinMain() instead of main() as the entry point.

    how do I make qmake create a console app visual studio project file? that is, /subsystem:console ?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: making qmake create VisualStudio console app project file?

    Qt Code:
    1. CONFIG += console
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: making qmake create VisualStudio console app project file?

    Quote Originally Posted by jpn View Post
    Qt Code:
    1. CONFIG += console
    To copy to clipboard, switch view to plain text mode 
    thanks, works great!

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.