Results 1 to 5 of 5

Thread: Deploy app in Linux

  1. #1
    Join Date
    Mar 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Deploy app in Linux

    Hi,

    I've been searching through this forum and read the Qt documentation's pages about deployment. In Windows I don't have any problems with deployment. I just start my executable and copy all missing libraries (Qt libs and mingw libc) into its directory until it runs...

    In Linux this is somehow different, it seems. Of course I can copy all libraries that the app is linked to, but last time I did that, after copying the qt libs it complained about a missing libaudio.so.2. And I don't really want to deploy system libraries with my app.

    My project is open source anyway, so I don't really have a problem with distributing a source package. But then it would be good to have a nice configure script in order to handle dependencies and all that. Is there a way to create one from a QtCreator project? A configure script should be quite universal for Qt apps, shoudln't it? Has anyone already written one?

    Cheers,
    fallen

  2. #2
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    3

    Default Re: Deploy app in Linux

    Well, I think your Windows method is flawed, but I can't even get the Windows version to compile right, so I won't comment. I've never deployed anything on Windows anyway, so maybe I'm crazy.

    [libaudio.so.2]

    Yes, many Qt classes need this, and depending on the distro attaining it might not be so easy. Are you using a QSound in your project? If so, you will need NAS (Network Audio System) anyway, and I'm pretty sure that comes with libaudio.

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

  4. #4
    Join Date
    Mar 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Deploy app in Linux

    That's what I love about this forum. In my original post I stated that I've actually read the documentation, but still I get a one-line-response with a link just there...

  5. #5
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Deploy app in Linux

    Quote Originally Posted by The_Fallen View Post
    That's what I love about this forum. In my original post I stated that I've actually read the documentation, but still I get a one-line-response with a link just there...
    Yes, and?
    Did you actually read that completely?
    I do not think so, otherwise you would not ask these questions.

    Now, if you have a problem understanding something in that text, please ask that specific question.

    Otherwise, Windows, Linux, MacOs, whatever ALL work the same. You have a set of executables, libraries and other files. The executable needs to be able to find the libraries and the other files. Well, install them in the correct folders and that is it.

    You can also install everything in your own folder, and that too is explained in the text.

    The only problems with linux are:
    1. The distributions can have different standard directories.
    2. Most packages are preferably installed by your distribution.

    What does this mean? Read the documentation about packaging for the targetted distributions. To keep it simple, target the most known ones. For the rest, distribute the source code and ask for others to create packages for you.

Similar Threads

  1. How to deploy?
    By aash_89 in forum Installation and Deployment
    Replies: 22
    Last Post: 23rd August 2010, 20:17
  2. Has anybody ever able to deploy qt application?
    By Tarun in forum Installation and Deployment
    Replies: 16
    Last Post: 22nd February 2010, 10:08
  3. How to deploy application using shared library in Linux
    By cutie.monkey in forum Installation and Deployment
    Replies: 9
    Last Post: 21st January 2010, 19:41
  4. Trying to deploy a bundle
    By afflictedd2 in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2009, 20:39
  5. Program in Windows, Deploy in Linux
    By suitto in forum Installation and Deployment
    Replies: 1
    Last Post: 8th April 2009, 14:11

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.