PDA

View Full Version : Portable Qt libraries?



LoloftheRings
April 27th, 2009, 10:24 PM
I'm developing an application in Qt, because it has to be portable and cross platform. I have to use it at school (windows xp) and at home (ubuntu). When I run the Qt app in a fresh installation, it get the error message:
./Qt: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory

Copying libQtGui.so.4 doesn't work. The easiest was is probably installing the Qt libraries, but I'm looking for a way to make it run just on every Ubuntu installation without installing anything at all. Firefox for example has the .so files in the excutable directory. How can I do this?

scourge
April 27th, 2009, 11:25 PM
Please read the "Creating the application package" section here: http://doc.trolltech.com/4.5/deployment-x11.html

LoloftheRings
April 28th, 2009, 08:10 AM
exactly what I was looking for. Thanks!