Results 1 to 5 of 5

Thread: Building on msvc without and excluding examples

  1. #1
    Join Date
    Mar 2009
    Posts
    19
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Building on msvc without and excluding examples

    Is there any way to build Qt on msvc (Windows) and exclude the examples? On *NIX, one can pass "-no-make examples" to configure, but there seems to be no equivalent on Windows. Building all the examples takes a long time, and I don't care about them.

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

    Default Re: Building on msvc without and excluding examples

    If you cd into the src directory before running make then only the projects in that directory will be compiled. If you cd into src/gui, then only libQtGUI will be built, etc.

  3. #3
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building on msvc without and excluding examples

    you can also edit examples.pro file under $QTDIR/examples and comment all the SUBDIRS that are being pointed to, before you run configure. Basically comment all the lines which has SUBDIRS (make sure you don't introduce syntax errros in it (take a backup of original examples.pro before you do it ). Don't forget the long list of sub-projects in the start of file. then run configure and make as usual.

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

    Default Re: Building on msvc without and excluding examples

    Thanks guys. Based on dpatel's idea, I just added "SUBDIRS =" to the bottom of examples.pro and demos.pro. Seems to be going swimmingly.

  5. #5
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Building on msvc without and excluding examples

    even better than what I suggested

Similar Threads

  1. Why is this so hard. (Building examples)
    By ohlfsen in forum Newbie
    Replies: 10
    Last Post: 26th February 2010, 10:40
  2. Prblem in Building and running Examples.
    By Tarun in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2010, 13:45
  3. Replies: 0
    Last Post: 31st December 2009, 09:31
  4. Building a sqldriver (QIBASE) in windows msvc++2008
    By ProTonS in forum Installation and Deployment
    Replies: 1
    Last Post: 16th July 2009, 16:39
  5. Building 4.5 / Vista x64 / MSVC 2008
    By Starfox in forum Installation and Deployment
    Replies: 1
    Last Post: 31st March 2009, 06:07

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.