Configure Qt without examples?
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?
Re: Configure Qt without examples?
just comment
Code:
# SUBDIRS += examples
} else:isEqual(PROJECT, demos) {
# SUBDIRS += demos
in projects.pro in QTDIR
Re: Configure Qt without examples?
On X11 one can also use configure switches "-nomake demos -nomake examples".
Re: Configure Qt without examples?
Editing projects.pro worked perfectly. Thanks a lot.
Re: Configure Qt without examples?
There is much more clear way, when configure is done just run "make sub-src" and only the library will be built.
Re: Configure Qt without examples?
agree, but it works only under x11. editing of projects.pro works everywhere :)
Re: Configure Qt without examples?
I'm with windows and it works. ;)
Re: Configure Qt without examples?
Thanks, quoting in the projects.pro file worked perfect! :)
Re: Configure Qt without examples?
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.
Re: Configure Qt without examples?
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.