PDA

View Full Version : how can i don't compile qt demos and examples?



rainspider
6th November 2009, 15:11
the 【configure -fast】 can do it,but i don't know what other will not be compiled.
I just to don't compile demos and examples,How do I?

Boron
6th November 2009, 16:32
Before running configure edit the projects.pro file:
Before:

SUBDIRS += examples
} else:isEqual(PROJECT, demos) {
SUBDIRS += demos

After:

# SUBDIRS += examples
} else:isEqual(PROJECT, demos) {
# SUBDIRS += demos

The run configure. Neither the examples nor the demos will be compiled.

rainspider
7th November 2009, 00:49
thanks.
I was told by specifying the [configure -nomake demos] parameters will do. I tried, and indeed can be.Do not know what you think okay.eg:
configure -debug-and-release -platform win32-msvc2008 -no-qt3support -no-openssl -no-phonon -webkit -opensource -nomake demos -nomake examples

Boron
7th November 2009, 12:57
This is nearly the same as I am using.

If you are running configure from a Visual Studio command prompt, as provided when having VS installed, you don't have to give the -platform win32-msvc2008 option. Configure will "autodetect" VS.

If you want to use WebKit you don't have to use the -webkit option. This is set by default. Only if you do not want to use WebKit you have to use -no-webkit.

squidge
7th November 2009, 16:58
If you only want to build the library and not the examples, demos and tools, then you can just "cd src" before running make. Similarly, if you only want to build QtGui4, then you can just "cd src\gui" before running make.

etc.