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. How to use linuxdeployqt
Forum Update on Monday, May 27th 2025

How to use linuxdeployqt

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 10.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.
  • T Offline
    T Offline
    taku-s
    wrote on 16 Apr 2019, 12:57 last edited by
    #1

    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.

    S 1 Reply Last reply 17 Apr 2019, 05:22
    0
    • T Offline
      T Offline
      taku-s
      wrote on 17 Apr 2019, 04:55 last edited by
      #3

      I see .
      Thank you

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 16 Apr 2019, 13:33 last edited by
        #2

        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

        1 Reply Last reply
        3
        • T Offline
          T Offline
          taku-s
          wrote on 17 Apr 2019, 04:55 last edited by
          #3

          I see .
          Thank you

          1 Reply Last reply
          0
          • T taku-s
            16 Apr 2019, 12:57

            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.

            S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 17 Apr 2019, 05:22 last edited by
            #4

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

            (Z(:^

            1 Reply Last reply
            2
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 17 Apr 2019, 05:24 last edited by
              #5

              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.

              (Z(:^

              1 Reply Last reply
              5

              1/5

              16 Apr 2019, 12:57

              • Login

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