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 create AppImage using linuxdeployqt?
Forum Updated to NodeBB v4.3 + New Features

How to create AppImage using linuxdeployqt?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 1.9k Views 1 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.
  • H Offline
    H Offline
    HFT_developer
    wrote on 19 Jan 2023, 06:59 last edited by HFT_developer
    #1

    Hi,

    I am trying to build an AppImage for my app which is made using Qt. When I run the AppImage of linuxdeployqt from this site:
    https://github.com/probonopd/linuxdeployqt/releases

    I get the following error:
    "linuxdeployqt (commit deebf70), build 38 built on 2022-12-15 18:06:02 UTC
    ERROR: The host system is too new.
    Please run on a system with a glibc version no newer than what comes with the oldest
    currently still-supported mainstream distribution (Ubuntu Bionic), which is glibc 2.27.
    This is so that the resulting bundle will work on most still-supported Linux distributions.
    For more information, please see
    https://github.com/probonopd/linuxdeployqt/issues/340
    "

    If this tool does not work what is the other official way to build AppImages for your Qt app?

    1 Reply Last reply
    0
    • H HFT_developer
      22 Jan 2023, 10:56

      @sierdzio In the meantime, I managed to deploy my App on windows that was fairly easy. I used windeployqt tool which was already inside the bin folder of Qt installation.

      Now for Linux, I tried using shared folder to share the executable from Ubuntu 22.04(my regular boot) to 18.04(in VM) but when I use linuxdeployqt it does not work. In my virtual machine do I need Qt and clone the repository and basically do everything I would do on my normal linux boot?

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 22 Jan 2023, 16:34 last edited by
      #8

      @HFT_developer said in How to create AppImage using linuxdeployqt?:

      In my virtual machine do I need Qt and clone the repository and basically do everything I would do on my normal linux boot?

      Yes.

      (Z(:^

      1 Reply Last reply
      2
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 19 Jan 2023, 10:39 last edited by
        #2

        It does work, the error message tells you precisely what to do and why not doing it is wrong: if you run it on too-new system, the AppImage will not work on older system (defeating the whole purpose of having an AppImage). Install some older Linux (can be in a virtual machine or container) and run linuxdeployqt there.
        Also, click the link the tool prints, it provides a lot of explanations and some workarounds, including links to other tools (which you are asking about).

        (Z(:^

        H 1 Reply Last reply 20 Jan 2023, 06:33
        4
        • S sierdzio
          19 Jan 2023, 10:39

          It does work, the error message tells you precisely what to do and why not doing it is wrong: if you run it on too-new system, the AppImage will not work on older system (defeating the whole purpose of having an AppImage). Install some older Linux (can be in a virtual machine or container) and run linuxdeployqt there.
          Also, click the link the tool prints, it provides a lot of explanations and some workarounds, including links to other tools (which you are asking about).

          H Offline
          H Offline
          HFT_developer
          wrote on 20 Jan 2023, 06:33 last edited by
          #3

          @sierdzio How do I run an older version of linux on the current pc which is already booting linux? Can docker containers work on linux or is using a virtual machine better for creating appimage?

          S 1 Reply Last reply 20 Jan 2023, 07:37
          0
          • H HFT_developer
            20 Jan 2023, 06:33

            @sierdzio How do I run an older version of linux on the current pc which is already booting linux? Can docker containers work on linux or is using a virtual machine better for creating appimage?

            S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 20 Jan 2023, 07:37 last edited by
            #4

            @HFT_developer said in How to create AppImage using linuxdeployqt?:

            Can docker containers work on linux

            Of course :)

            @sierdzio How do I run an older version of linux on the current pc which is already booting linux? Can docker containers work on linux or is using a virtual machine better for creating appimage?

            Pick whatever you like. For initial setup I'd probably start with a virtual machine because it's a bit easier to work with a GUI. But if you're already familiar with this stuff and only need some solution to generate packages - docker is better then. Faster and easier to integrate into CI.

            (Z(:^

            H 1 Reply Last reply 21 Jan 2023, 08:06
            0
            • S sierdzio
              20 Jan 2023, 07:37

              @HFT_developer said in How to create AppImage using linuxdeployqt?:

              Can docker containers work on linux

              Of course :)

              @sierdzio How do I run an older version of linux on the current pc which is already booting linux? Can docker containers work on linux or is using a virtual machine better for creating appimage?

              Pick whatever you like. For initial setup I'd probably start with a virtual machine because it's a bit easier to work with a GUI. But if you're already familiar with this stuff and only need some solution to generate packages - docker is better then. Faster and easier to integrate into CI.

              H Offline
              H Offline
              HFT_developer
              wrote on 21 Jan 2023, 08:06 last edited by
              #5

              @sierdzio okay I've finally managed to setup Ubuntu 18.04(Bionic) on vitual box. When I use the linuxdeployqt tool do I need to compile on virtual machine or just transfer the executable from my pc to the virtual machine?

              S 1 Reply Last reply 21 Jan 2023, 19:22
              0
              • H HFT_developer
                21 Jan 2023, 08:06

                @sierdzio okay I've finally managed to setup Ubuntu 18.04(Bionic) on vitual box. When I use the linuxdeployqt tool do I need to compile on virtual machine or just transfer the executable from my pc to the virtual machine?

                S Offline
                S Offline
                sierdzio
                Moderators
                wrote on 21 Jan 2023, 19:22 last edited by
                #6

                @HFT_developer said in How to create AppImage using linuxdeployqt?:

                @sierdzio okay I've finally managed to setup Ubuntu 18.04(Bionic) on vitual box. When I use the linuxdeployqt tool do I need to compile on virtual machine or just transfer the executable from my pc to the virtual machine?

                Compile there, to make sure GLibc compatibility.

                (Z(:^

                H 1 Reply Last reply 22 Jan 2023, 10:56
                1
                • S sierdzio
                  21 Jan 2023, 19:22

                  @HFT_developer said in How to create AppImage using linuxdeployqt?:

                  @sierdzio okay I've finally managed to setup Ubuntu 18.04(Bionic) on vitual box. When I use the linuxdeployqt tool do I need to compile on virtual machine or just transfer the executable from my pc to the virtual machine?

                  Compile there, to make sure GLibc compatibility.

                  H Offline
                  H Offline
                  HFT_developer
                  wrote on 22 Jan 2023, 10:56 last edited by
                  #7

                  @sierdzio In the meantime, I managed to deploy my App on windows that was fairly easy. I used windeployqt tool which was already inside the bin folder of Qt installation.

                  Now for Linux, I tried using shared folder to share the executable from Ubuntu 22.04(my regular boot) to 18.04(in VM) but when I use linuxdeployqt it does not work. In my virtual machine do I need Qt and clone the repository and basically do everything I would do on my normal linux boot?

                  S 1 Reply Last reply 22 Jan 2023, 16:34
                  0
                  • H HFT_developer
                    22 Jan 2023, 10:56

                    @sierdzio In the meantime, I managed to deploy my App on windows that was fairly easy. I used windeployqt tool which was already inside the bin folder of Qt installation.

                    Now for Linux, I tried using shared folder to share the executable from Ubuntu 22.04(my regular boot) to 18.04(in VM) but when I use linuxdeployqt it does not work. In my virtual machine do I need Qt and clone the repository and basically do everything I would do on my normal linux boot?

                    S Offline
                    S Offline
                    sierdzio
                    Moderators
                    wrote on 22 Jan 2023, 16:34 last edited by
                    #8

                    @HFT_developer said in How to create AppImage using linuxdeployqt?:

                    In my virtual machine do I need Qt and clone the repository and basically do everything I would do on my normal linux boot?

                    Yes.

                    (Z(:^

                    1 Reply Last reply
                    2

                    1/8

                    19 Jan 2023, 06:59

                    • Login

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