[Qt-interest] Deployment of Qt libraries in Linux
Josh
jnfo-c at grauman.com
Thu Dec 10 19:25:51 CET 2009
Thanks, this is helpful, but I still have a couple questions ;)
Why two different versions of the libraries in lib and qt/lib in the SDK?
How can I tell which version of the various libs the Qt libraries are
dependant upon (I couldn't see this info in ldd, but maybe I missed it)?
>From what I've heard, if Qt is compiled against an old version of a
library (ie. freetype), then it will still work on systems with newer
versions of that library, but not visa-versa.
Maybe the main question I'm asking is simpler. Is my safest bet just to
include the libraries from the SDK with my program, or will my program
have better compatibility if I compile my own libraries based on a system
with older libraries?
Thanks.
Josh
>> I am wondering about including Qt Libraries with an app I've created for
>> Linux. When I download the Qt 4.6 SDK (32-bit) for linux, there are two
>> different sets of libraries, one much larger than the other. I'm wondering
>> what is the difference between them and which one it would be better to
>> include with an executable. For example for the new 4.6 SDK here are the
>> files for QtCore:
>>
>> 3197172 lib/libQtCore.so.4.6.0*
>> 22295163 qt/lib/libQtCore.so.4.6.0*
>
> The ones in qt/lib are the ones your app needs. You do not need to distribute
> the *.debug files though (they are only needed for debugging).
>
>> I'm wondering if the larger library also includes all the other libraries
>> Qt needs compiled in as well (freetype, etc.). What versions of the
>> various other libraries are these libraries compiled against? If I have a
>> Qt app that is only dependant on Qt, will including one of these libraries
>> be sufficient for my app even if other required libraries (freetype, etc.)
>> are out of date or not present on the target system?
>
> Use ldd to find out...
>
>> If the app is closed
>> source and based on the LGPL, is it ok to include either of these
>> libraries? Thanks for any/all information.
>
> You can include all of those libraries. However you have to do one of those:
> a) offer your users to ship the library sources on request (for no cost)
> b) include the library sources on the distribution CD
>
> You do not need to include the sources of your own app.
>
> [Disclaimer: IANAL]
>
>
>
> Konrad
>
More information about the Qt-interest-old
mailing list