Results 1 to 4 of 4

Thread: How to make a Project runnable on Linux?

  1. #1

    Default How to make a Project runnable on Linux?

    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!

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make a Project runnable on Linux?

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to make a Project runnable on Linux?

    Quote Originally Posted by alizadeh91 View Post
    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,
    _

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to make a Project runnable on Linux?

    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.

Similar Threads

  1. How to make my Qt project executable
    By mebingj in forum Installation and Deployment
    Replies: 1
    Last Post: 14th March 2011, 14:23
  2. Replies: 5
    Last Post: 16th November 2010, 22:46
  3. How do I make my project executable file
    By theios_nikos in forum Newbie
    Replies: 8
    Last Post: 4th June 2010, 21:48
  4. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 05:25
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 10:43

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.