[Qt-interest] How to do a static linking

Nikos Chantziaras realnc at arcor.de
Tue Feb 15 18:13:15 CET 2011


On 02/15/2011 07:08 PM, Andreas Pakulat wrote:
> On 15.02.11 17:18:12, Konstantin Tokarev wrote:
>>
>>
>> 15.02.2011, 17:09, "Karl Ruetz"<karl.ruetz at sototech.com>:
>>> When you say "other systems" do mean other Linux Distributions?
>>> If so, you can still dynamically link (providing the Linux kernel version matches and you are not trying to go from a 64bit system to a 32bit system.) and distribute the necessary shared objects.
>>
>> Kernel version is not so important (of course 2.4.x is not compatible with 2.6.x, but minor version generally doesn't matter)
>>
>> Much more important is glibc version - software built agains old version can run on new, but not vice versa.
>>
>> To get truly redistributable Linux binaries, I'd recommended to build them on system with reasonably old glibc (e.g., CentOS 5)
>> and distribute them with bundled Qt libraries
>
> That does not really help anymore. There are distro's out there that don't
> ship a libc5 anymore and even if they do the users always need to install
> it manually. The only way to get redistributable linux binaries is to build
> them on a couple of different systems+compilers so you can provide suitable
> binaries for varying systems.

If you build on Debian Lenny, you usually get almost everything covered. 
  If you also need to support outdated libc5 system, then an old 
CentOS/RedHat will do, then you get pretty much 100% coverage.



More information about the Qt-interest-old mailing list