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. Deploy Application in Linux
Forum Updated to NodeBB v4.3 + New Features

Deploy Application in Linux

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 6 Posters 3.4k Views 3 Watching
  • 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.
  • E Offline
    E Offline
    EndrII 0
    wrote on 11 Mar 2021, 12:54 last edited by
    #21

    @hbatalha said in Deploy Application in Linux:

    So I went on to another alternative, CQtDeployer, I installed and tried to run it but don't matter how I tried it always gave me 'missing arguments' errors and there are two few examples on how to use it and no guide on how to deploy an application right from start.

    Show the command you used when running cqtdeployer .
    Here's the documentation on how to use cqtdeployer.
    This is guide on how to deploy an application right from start.

    1 Reply Last reply
    2
    • J JohanSolo
      6 Mar 2021, 07:13

      So please, give us:

      • the output of ls -R, run from the directory where your exe is located
      • the output of ldd, run on your exe
      • the output of chrpath -l, run on your exe

      There must be something wrong or at least not understood by us in your setup, it should work.

      H Offline
      H Offline
      hbatalha
      wrote on 3 Apr 2021, 22:41 last edited by
      #22

      @JohanSolo sorry for the really late reply, I got really busy with school and I put this aside for a while.

      I found out what I was doing wrong, as it turns out, the problem was that all .so files in my lib folder were copied as symlink when I copied them directly. So I copied the entire lib folder from the Qt installation and then removed the ones the program didn't need.

      And in the .pro file I just added:

      unix:{
          # suppress the default RPATH if you wish
          QMAKE_LFLAGS_RPATH=
      
          QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/lib\'"
      }
      

      Thanks for the time and patience

      P 1 Reply Last reply 3 Apr 2021, 22:50
      0
      • H hbatalha
        3 Apr 2021, 22:41

        @JohanSolo sorry for the really late reply, I got really busy with school and I put this aside for a while.

        I found out what I was doing wrong, as it turns out, the problem was that all .so files in my lib folder were copied as symlink when I copied them directly. So I copied the entire lib folder from the Qt installation and then removed the ones the program didn't need.

        And in the .pro file I just added:

        unix:{
            # suppress the default RPATH if you wish
            QMAKE_LFLAGS_RPATH=
        
            QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/lib\'"
        }
        

        Thanks for the time and patience

        P Offline
        P Offline
        Pablo J. Rogina
        wrote on 3 Apr 2021, 22:50 last edited by
        #23

        @hbatalha said in Deploy Application in Linux:

        I found out what I was doing wrong

        great! please don't forget to mark your post as solved.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1

        • Login

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