[Qt-interest] Compiling Into a Monolithic Executable

Vincent L. Damewood lists at damewood.us
Sat Mar 28 13:36:29 CET 2009


2009/3/28 Raja Sekharan <websweetweb at gmail.com>:
> Hi,
> I would like to compile my application into a single executable file in
> Linux and Windows. The executable should run regardless of what library is
> installed or not in the Local linux system. Is there a way to do this? I
> understand that compiling in windows already creates a completely self
> contained executable but how do I do the same with Linux.
> Raja Sekharan

Configure qt with -static and make sure that the gcc gets the -static
argument when linking.

Linking information for gcc:
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html



More information about the Qt-interest-old mailing list