PDA

View Full Version : [Q] how to build Qt executables only?



khopper
1st December 2008, 00:48
Hi, I have tried to build a version of Qt for execution only
on WInXP or Linux. I tried to remove doc, demo, and examples
with no luck.

Does anyone know if there is an executable only version of Qt
or how to configure a build for a nice small installation?

thanks,
Ken - newbie

Lawand
1st December 2008, 14:11
I'm not sure I got you right,
If you are planning to build a version of Qt which is smaller than the original, and for execution only, then it looks like you want to deploy that version with your application, am I right?

in that case, you can try to static link the portions of Qt which your application uses, thus have a single stand-alone exe file to deploy alone.
you can learn more about that here (http://doc.trolltech.com/4.3/deployment-windows.html#static-linking).

HTH

jpn
1st December 2008, 14:44
I tried to remove doc, demo, and examples
with no luck.
On X11 you can pass "-nomake demos -nomake examples" to the configure script. Unfortunately the Windows version of the configure script doesn't support those arguments, so you'll have to comment them out from the projects.pro file. Alternatively you can run "make sub-src" to compile the libraries only.

khopper
1st December 2008, 15:17
Thank you very much HTH for the link to the "How to Deploy" webpage.
Yes, that is what I was looking for and I missed this great info.
thanks again for helping a newbie,
Ken - Naperville, IL USA

Lawand
1st December 2008, 16:00
You're welcome.

BTW, HTH is an abbreviation of "Hope This Helps" :D