PDA

View Full Version : Building on msvc without and excluding examples



negritot
9th April 2010, 23:29
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.

squidge
10th April 2010, 22:09
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.

dpatel
13th April 2010, 07:16
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.

negritot
15th April 2010, 20:08
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. :D

dpatel
16th April 2010, 06:52
even better than what I suggested :)