Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to use linuxdeployqt



  • 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 command

    chmod + x linuxdeployqt-5-x86_64.AppImage
    ./linuxdeployqt-5-x86_64.AppImage test
    ./linuxdeployqt-5-x86_64.AppImage test -appimage

    And 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 fault

    When executed as a general user
    After running the app
    Segmentation fault
    End with

    I expect test-x86_64.AppImage to deploy executables, libraries etc.
    It will not be done.

    Am I wrong?

    Thank you.



  • I see .
    Thank you


  • Lifetime Qt Champion

    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



  • I see .
    Thank you


  • Moderators

    @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.


  • Moderators

    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.


Log in to reply