[Qt-interest] Deployment of Qt libraries in Linux

Konrad Rosenbaum konrad at silmor.de
Wed Dec 9 11:17:58 CET 2009


On Wednesday 09 December 2009 00:07:02 Josh wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091209/6f901881/attachment.bin 


More information about the Qt-interest-old mailing list