[Qt-interest] Distributing Qt 4.5 applications

Andreas Pakulat apaku at gmx.de
Fri Apr 3 18:04:30 CEST 2009


On 03.04.09 20:40:11, Raja Sekharan wrote:
> I have created my application in my Ubuntu Linux and trying to run it in
> another computer. I am not able to run the application in another Linux
> computer because of missing share libraries. 
> 
> I am using the QtGui, QtWebKit, QtUiTools, QtNetwork, QtXml modules in
> my applications.
> 
> Generally, what libraries would have to be packaged with the application
> in say, a  deb file, to make qt applications work in a fresh
> installation of ubuntu/mandriva/fedora etc?

Only the libraries that you wrote yourself and are part of the app. No qt
library should be in such a package, instead the package should have an
apropriate dependency onto whatever package is used in the distribution for
Qt (or other libs you've used).

> Also, is there anything directive I can add in the .pro or make file
> that will make the G++ compile everything statically into a self
> contained executable file that will not require the presence of shared
> libraries?

If you have a static Qt build you can build your app statically against it,
IIRC its CONFIG += static but see the qmake manual for details.

Andreas

-- 
You are standing on my toes.



More information about the Qt-interest-old mailing list