How to use linuxdeployqt
-
wrote on 16 Apr 2019, 12:57 last edited by
Hi all
I am using Qt5.7.1 and QtCreator4.2.0 on Debian 9.8.
I want to create a deployment file with linuxdeployqt.
What I did
Release build of test project and make executable file
I created an icon file, test.png
I made a desktop entry
And I made a new directory for distribution, test_deploy, and put the above 3 files.
I downloaded linuxdeployqt-5-x86_64.AppImage from https://github.com/probonopd/linuxdeployqt/releases
And put it in the test_deploy directory.
Next, I executed the following commandchmod + x linuxdeployqt-5-x86_64.AppImage
./linuxdeployqt-5-x86_64.AppImage test
./linuxdeployqt-5-x86_64.AppImage test -appimageAnd I got test-x86_64.AppImage
I copied this test-x86_64.AppImage to another Debian 9.8.But when I run it as root
Qt: Session management error: None of the authentication protocols specified are supported
After running the app
Segmentation faultWhen executed as a general user
After running the app
Segmentation fault
End withI expect test-x86_64.AppImage to deploy executables, libraries etc.
It will not be done.Am I wrong?
Thank you.
-
wrote on 17 Apr 2019, 04:55 last edited by
I see .
Thank you -
Hi
linuxdeployqt is not an officiel Qt tool.
You can be lucky someone knows here and will answer but in case not, then
ask in #AppImage on irc.freenode.net -
wrote on 17 Apr 2019, 04:55 last edited by
I see .
Thank you -
Hi all
I am using Qt5.7.1 and QtCreator4.2.0 on Debian 9.8.
I want to create a deployment file with linuxdeployqt.
What I did
Release build of test project and make executable file
I created an icon file, test.png
I made a desktop entry
And I made a new directory for distribution, test_deploy, and put the above 3 files.
I downloaded linuxdeployqt-5-x86_64.AppImage from https://github.com/probonopd/linuxdeployqt/releases
And put it in the test_deploy directory.
Next, I executed the following commandchmod + x linuxdeployqt-5-x86_64.AppImage
./linuxdeployqt-5-x86_64.AppImage test
./linuxdeployqt-5-x86_64.AppImage test -appimageAnd I got test-x86_64.AppImage
I copied this test-x86_64.AppImage to another Debian 9.8.But when I run it as root
Qt: Session management error: None of the authentication protocols specified are supported
After running the app
Segmentation faultWhen executed as a general user
After running the app
Segmentation fault
End withI expect test-x86_64.AppImage to deploy executables, libraries etc.
It will not be done.Am I wrong?
Thank you.
@taku-s said in How to use linuxdeployqt:
And put it in the test_deploy directory.
Don't do that. Deployment tool might try to deploy itself.
I expect test-x86_64.AppImage to deploy executables, libraries etc.
Yes, that is what it will normally do. Run it with higher verbosity level, look for any warnings - maybe you have missed something.
Also, unless your app needs special permissions - there is no need to run the image as root.
-
Here is a deployment script from one of my projects: https://github.com/sierdzio/gibs/blob/master_qt/scripts/deploy-linux.sh
maybe it will be of use to you. One obvious thing that pops out is that you have not specified Qt version in linuxdeployqt call - so most probably the tool picked up your SYSTEM Qt, and not your Qt 5.7 installation.
1/5