[Qt-interest] How to do a static linking
Konstantin Tokarev
annulen at yandex.ru
Thu Feb 17 10:38:50 CET 2011
17.02.2011, 12:30, "Konstantin Tokarev" <annulen at yandex.ru>:
>> Aside, statically linking will make the application bloat.
>
> This statement is not correct if project is compiled into one executable file.
> In this case, dynamic linking makes more bloat than static
>
>> Then just look at files begin with libQt*.so.*, in my sample give us 2 files.
>
> Also you need to copy other libraries which Qt depend on: zlib, fonctonfig, etc.
> You may also need to copy libstdc++ if you are using RTTI or exceptions.
>
> But don't even think about copying libdl :)
One more tip for redistribution with use of dynamic linking: to reduce number of
dependencies for Qt libraries you can configure Qt with -no-glib option
glib is needed only for Gtk style, and it seems to be impossible to make Gtk style
work with differrent Gtk versions
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list