Deploy Application in Linux
-
wrote on 11 Mar 2021, 12:54 last edited by
@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. -
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.
wrote on 3 Apr 2021, 22:41 last edited by@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
- the output of
-
@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
wrote on 3 Apr 2021, 22:50 last edited by@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.