I have question about statically linking libraries into your application under linux.
I have a binary I am trying to distribute under linux and it is not going well.
So my basic questions are:
1. How do I statically link in libraries like:
libdl.so.2 => /lib/libdl.so.2 (0x40031000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libm.so.6 => /lib/i686/libm.so.6 (0x40035000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40057000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
2. I added Xinerama support along with all the others. How do I turn that off with out reconfiguring my Qt source. There has to be a way to tell it not to use them in the .pro file or something.
3. By not having these libraries... will that make my application look / act different? I also noticed Qt said they have their own versions... should I use those if they do actually effect my application?
I know that if I add "CONFIG += static" to my .pro file it will link Qt libraries statically... I am not worried about those. Just the others.
Here is a list of my lib. dependencies:
libpng12
libSM
libICE
libXrender
libXrandr
libXcursor
libXinerama
libfreetype
libfontconfig
libXext
libX11
libz
libglib-20
libdl
libpthread
libstdc++
libm
libgcc_s
libc
libXfixes
libexpat
/lib/ld-linux.so.2
I am getting a lot of libc.so.6 errors when I copy my app to another system.. and it doesn't work. Hopefully statically compiling it will. I also head that I should not statically link X11. If anyone has any advice... I am all ears.
Bookmarks