Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. What Qt specific files exactly do I need to add when deploying?
Forum Updated to NodeBB v4.3 + New Features

What Qt specific files exactly do I need to add when deploying?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
40 Posts 10 Posters 7.5k Views 4 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.
  • C Creaperdown

    I am working on creating a tar.gz of my application that will run on every linux distribution. When creating an installer for windows, the qtwin deploy tool moved multiple qml folders and plugins into my deploy folder. What (except the shared libraries) do I need to deploy my application for linux?

    sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    @Creaperdown best use some tool for this, like linuxdeployqt, or cmake deplopyment found in newest Qt versions, or other similar tools for flatpak or snap.

    (Z(:^

    C 1 Reply Last reply
    4
    • sierdzioS sierdzio

      @Creaperdown best use some tool for this, like linuxdeployqt, or cmake deplopyment found in newest Qt versions, or other similar tools for flatpak or snap.

      C Offline
      C Offline
      Creaperdown
      wrote on last edited by
      #3

      @sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?

      sierdzioS jsulmJ 2 Replies Last reply
      0
      • C Creaperdown

        @sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #4

        @Creaperdown let me google that for you

        I guess it would mean 14.04.6.

        (Z(:^

        JonBJ 1 Reply Last reply
        0
        • C Offline
          C Offline
          Creaperdown
          wrote on last edited by
          #5

          @sierdzio I have tried 14.04 in the past and its too old to do anything on in my experience. Looking through the issues it seems like 20.04 works fine with linuxdeployqt since 18 is near its EOL

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            @Creaperdown let me google that for you

            I guess it would mean 14.04.6.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #6

            @sierdzio said in What Qt specific files exactly do I need to add when deploying?:

            I guess it would mean 14.04.6.

            I don't know where that might have come from as the "last supported LTS version of ubuntu", since that means 2014, and I doubt Ubuntu stopped there! :) Now it should be 22.04+ (i.e. or later).

            JoeCFDJ 1 Reply Last reply
            1
            • C Creaperdown

              @sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @Creaperdown said in What Qt specific files exactly do I need to add when deploying?:

              it only works on the last supported LTS version of ubuntu

              Try to add -unsupported-allow-new-glibc parameter to linuxdeployqt call

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • JonBJ JonB

                @sierdzio said in What Qt specific files exactly do I need to add when deploying?:

                I guess it would mean 14.04.6.

                I don't know where that might have come from as the "last supported LTS version of ubuntu", since that means 2014, and I doubt Ubuntu stopped there! :) Now it should be 22.04+ (i.e. or later).

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #8

                @JonB Jon is right. Ubuntu 23.04 has come out for a while. Better to use 22.04 or up since many more other packages(not only Qt) have been upgraded.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Creaperdown
                  wrote on last edited by
                  #9

                  I am trying linuxdeployqt on 20.04 and it works fine up to the point where I tells me the following:
                  3ffb35b3-b2f9-4e7b-9a22-9f6c269a1a65-image.png

                  Does someone have an idea what the issue is?

                  JoeCFDJ 1 Reply Last reply
                  0
                  • C Creaperdown

                    I am trying linuxdeployqt on 20.04 and it works fine up to the point where I tells me the following:
                    3ffb35b3-b2f9-4e7b-9a22-9f6c269a1a65-image.png

                    Does someone have an idea what the issue is?

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #10

                    @Creaperdown The message is clear: libqsqlmimer.so is not installed. Did you install sql module? I have it in my installation.

                    jsulmJ 1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @Creaperdown The message is clear: libqsqlmimer.so is not installed. Did you install sql module? I have it in my installation.

                      jsulmJ Online
                      jsulmJ Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @JoeCFD said in What Qt specific files exactly do I need to add when deploying?:

                      libqsqlmimer.so is not installed

                      It is installed. Not installed is its dependency (libmimerapi.so).

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      C 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @JoeCFD said in What Qt specific files exactly do I need to add when deploying?:

                        libqsqlmimer.so is not installed

                        It is installed. Not installed is its dependency (libmimerapi.so).

                        C Offline
                        C Offline
                        Creaperdown
                        wrote on last edited by
                        #12

                        @jsulm but it is not listed in ldd ./myApp and my application works just fine without it. Why do I need it?

                        jsulmJ JoeCFDJ C 3 Replies Last reply
                        0
                        • C Creaperdown

                          @jsulm but it is not listed in ldd ./myApp and my application works just fine without it. Why do I need it?

                          jsulmJ Online
                          jsulmJ Online
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @Creaperdown Is it possible that you added qt sql module in your pro or CMakeLists.txt file?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • C Creaperdown

                            @jsulm but it is not listed in ldd ./myApp and my application works just fine without it. Why do I need it?

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #14

                            @Creaperdown plugin is different from so although both are libs. Sos are linked to your app and ldd can see all of them. Plugins are loaded from a fixed path at running time and are not exposed to ldd.

                            it is the harder part to deploy your plugins at the right spot or do not forget to set the path for your app to load them.

                            1 Reply Last reply
                            0
                            • C Creaperdown

                              @jsulm but it is not listed in ldd ./myApp and my application works just fine without it. Why do I need it?

                              C Offline
                              C Offline
                              Creaperdown
                              wrote on last edited by
                              #15

                              @Creaperdown Not explicitly, these are all qt modules I use:

                              find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test)
                              
                              jsulmJ 1 Reply Last reply
                              0
                              • C Creaperdown

                                @Creaperdown Not explicitly, these are all qt modules I use:

                                find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test)
                                
                                jsulmJ Online
                                jsulmJ Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                @Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                C 2 Replies Last reply
                                0
                                • jsulmJ jsulm

                                  @Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6

                                  C Offline
                                  C Offline
                                  Creaperdown
                                  wrote on last edited by
                                  #17
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • jsulmJ jsulm

                                    @Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6

                                    C Offline
                                    C Offline
                                    Creaperdown
                                    wrote on last edited by
                                    #18

                                    @jsulm I cant find an sql module to download from the online installer. Is there a way to fix this? I can not find the libmimerapi.so file in the ubuntu repos either.

                                    JoeCFDJ 1 Reply Last reply
                                    0
                                    • C Creaperdown

                                      @jsulm I cant find an sql module to download from the online installer. Is there a way to fix this? I can not find the libmimerapi.so file in the ubuntu repos either.

                                      JoeCFDJ Offline
                                      JoeCFDJ Offline
                                      JoeCFD
                                      wrote on last edited by
                                      #19

                                      @Creaperdown As jsulm said, it could be a bug in the tool since you do not use sql. The tool tries to wrap all plugins.

                                      https://doc.qt.io/qt-6/sql-driver.html
                                      https://doc.qt.io/qt-6/qtsql-index.html

                                      C 1 Reply Last reply
                                      0
                                      • JoeCFDJ JoeCFD

                                        @Creaperdown As jsulm said, it could be a bug in the tool since you do not use sql. The tool tries to wrap all plugins.

                                        https://doc.qt.io/qt-6/sql-driver.html
                                        https://doc.qt.io/qt-6/qtsql-index.html

                                        C Offline
                                        C Offline
                                        Creaperdown
                                        wrote on last edited by
                                        #20

                                        @JoeCFD I have searched through my source directory again and couldn't find any mention of sql, but I found the following:
                                        3de65928-f5f3-44d9-adc7-081e962c2d5c-image.png
                                        Could it be possible that this causes the issue?

                                        1 Reply Last reply
                                        0
                                        • T Offline
                                          T Offline
                                          tanjoe
                                          wrote on last edited by
                                          #21
                                          This post is deleted!
                                          1 Reply Last reply
                                          0

                                          • Login

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