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
Qt 6.11 is out! See what's new in the release blog

How to use linuxdeployqt

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 13.2k Views 2 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.
  • taku-sT Offline
    taku-sT Offline
    taku-s
    wrote on 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.

    sierdzioS 1 Reply Last reply
    0
    • taku-sT Offline
      taku-sT Offline
      taku-s
      wrote on last edited by
      #3

      I see .
      Thank you

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on 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
        • taku-sT Offline
          taku-sT Offline
          taku-s
          wrote on last edited by
          #3

          I see .
          Thank you

          1 Reply Last reply
          0
          • taku-sT taku-s

            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.

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on 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
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on 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

              • Login

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