PDA

View Full Version : How to deploy my program under linux systems?



Abdeljalil
10th March 2014, 20:56
Hello everybody, :)
i was wondering about how can i deploy my first program under linux based os.
i found how to slove that on windows. but i don't know how under linux?
the problem is that i used Qt5 but the majority of linux distros right now support only Qt4.
how to solve dependencies problem?
can i build an installation script to do that on the user machine?
where to put (.so) files? :confused:

sonulohani
11th March 2014, 06:15
For ubuntu 12.04 or above you can easily install the Qt5 using the setup that is provided by the digia. But for other linux distros, you might have to compile the qt from the scratch. If you want the documentation regarding the Qt installation, please go to this link :- http://qt-project.org/wiki/Building_Qt_5_from_Git

Before compiling please make sure that you have successfully installed all the dependencies.

anda_skoa
11th March 2014, 08:57
i was wondering about how can i deploy my first program under linux based os.
i found how to slove that on windows. but i don't know how under linux?
the problem is that i used Qt5 but the majority of linux distros right now support only Qt4.
how to solve dependencies problem?

Just like on Windows: ship the needed libraries with the application.



can i build an installation script to do that on the user machine?

Yes. There are even installer builders that can create Windows and Linux installers.



where to put (.so) files? :confused:

Almost anywhere you like. Your start script would set the LD_LIBRARY_PATH variable to point to that location and the runtime linker will then search it when looking for the libraries.

Cheers,
_