PDA

View Full Version : Configure Qt without examples?



Boron
4th August 2008, 16:46
Hello,

I don't need the examples of Qt (4.4.1 open source). For as they take a long time to compile I want to "configure" Qt to ignore the examples.
But I cannot find a suitable switch in the help of configure.exe.
How can I tell the installation not to compile the examples?

spirit
4th August 2008, 16:53
just comment


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

in projects.pro in QTDIR

jpn
4th August 2008, 18:40
On X11 one can also use configure switches "-nomake demos -nomake examples".

Boron
4th August 2008, 19:57
Editing projects.pro worked perfectly. Thanks a lot.

The Storm
6th August 2008, 00:41
There is much more clear way, when configure is done just run "make sub-src" and only the library will be built.

spirit
6th August 2008, 07:06
agree, but it works only under x11. editing of projects.pro works everywhere :)

The Storm
7th August 2008, 21:29
I'm with windows and it works. ;)

Jens1990
4th August 2011, 10:24
Thanks, quoting in the projects.pro file worked perfect! :)

squidge
4th August 2011, 12:50
If you just navigate to the appropriate directly (rather than root Qt) and run make, it will only build that part of the library. For example, QtGUI.

hypnotic401
8th September 2011, 18:24
add "-nomake examples -nomake demos" to your configure invocations, it works on both windows and linux. I cannot speak for any other platforms though. Those commands accomplish the same as commenting the lines out of the projects.pro file.