PDA

View Full Version : How to make a Project runnable on Linux?



rastarockett
7th April 2013, 13:35
Hi,
I'm trying to get a QT Program I wrote on Windows to work on a Linux System (with no QT installed). I can't seem to find a proper beginner tutorial on the matter... On Windows I just use the "release"- Folder and add all necessary DLL files and start the .exe . Is there an easy way like this for Linux? Can somebody please tell me Step-by-Step how to do this in QT Creator or point me to a tutorial? Thanks for your help!

alizadeh91
7th April 2013, 13:48
Be aware that you can't run .exe that have created in windows on linux. I thinks and as i know you have to create your program in linux. Dll's are dynamic link library in windows and in linux there are .a files instead of .dll.

anda_skoa
7th April 2013, 21:38
Dll's are dynamic link library in windows and in linux there are .a files instead of .dll.
.so actually, .a are the equivalent to .LIB files on Windows (static libararies).

Cheers,
_

ChrisW67
8th April 2013, 00:28
On Windows I just use the "release"- Folder and add all necessary DLL files and start the .exe . Is there an easy way like this for Linux? Can somebody please tell me Step-by-Step how to do this in QT Creator or point me to a tutorial?
Once you have built your program for a Linux target you do exactly the same thing with the program files. On Linux the directory containing the program executable is not normally checked for dynamic libraries so you need to run you program indirectly through a wrapper script. The process is described in the friendly manual: Deploying an Application on X11 Platforms: Creating the Application Package

The equivalent of Dependency Walker on Linux is the command "ldd prog_file_name" but you should not need it if for every file you deployed for Windows you have a corresponding file for Linux.