[Qt-interest] How to do a static linking
Andreas Pakulat
apaku at gmx.de
Tue Feb 15 18:08:55 CET 2011
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.
Andreas
--
Your nature demands love and your happiness depends on it.
More information about the Qt-interest-old
mailing list