Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Deploy Linux application
QtWS25 Last Chance

[Solved] Deploy Linux application

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moravas
    wrote on last edited by
    #1

    Hi Folks,

    I wrote some posts about the deploying an application on Windows, but at now, I need to deploy my app on linux as well. I use Ubuntu or other Debian base systems. I tried to find any solution without to much resoults... On windows, I put the .dlls next to the .exe and my app is able to start.
    On linux, I know only the way that I add the path of librarys to the ld.so. conf file. To do that, the user must have root or sudoers privileges. Can anybody tell me an more flexible way? (the statical linking is not an option to me...)

    Regards,
    Norbert

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, I wrote a "blog post":http://www.tripleboot.org/?p=138 just for you :-) Look for the Linux GCC part!

      EDIT: I use the chrpath command, that's the easiest way I think to get your Qt app running in Ubuntu/Debian.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

        Some people say this issue can be solved by adding
        @qApp->addLibraryPath("/some/other/path");@
        line in code :)
        "Linux deployment":http://qt-project.org/doc/qt-5/linux-deployment.html

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Yes, addLibraryPath() can also help, but note this:

          when you talk about Qt's libraries and how to find them, it's actually a problem in two parts:

          1. getting the OS (in this case Debian/Ubuntu) to load the DLLs needed for your Qt app, for example libQt5Core.so.5, libQt5Gui.so.5 etc.

          2. getting Qt itself (once your app is loaded) to find and load the the DLLs needed from the plugins folder, for example platforms\libqxcb.so.

          qApp->addLibraryPath() only help you with problem part #2, and the chrpath utility is one way to cope with problem part #1.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            moravas
            wrote on last edited by
            #5

            Hi,

            hskoglund's tip seems to work. Thank you very much

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved