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 6.8k 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
    24 Oct 2023, 14:50

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

    find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test)
    
    J Online
    J Online
    jsulm
    Lifetime Qt Champion
    wrote on 24 Oct 2023, 14:53 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 24 Oct 2023, 14:56
    0
    • J jsulm
      24 Oct 2023, 14:53

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

      C Offline
      C Offline
      Creaperdown
      wrote on 24 Oct 2023, 14:56 last edited by
      #17
      This post is deleted!
      1 Reply Last reply
      0
      • J jsulm
        24 Oct 2023, 14:53

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

        C Offline
        C Offline
        Creaperdown
        wrote on 24 Oct 2023, 14:59 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.

        J 1 Reply Last reply 24 Oct 2023, 15:25
        0
        • C Creaperdown
          24 Oct 2023, 14:59

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

          J Offline
          J Offline
          JoeCFD
          wrote on 24 Oct 2023, 15:25 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 28 Oct 2023, 11:23
          0
          • J JoeCFD
            24 Oct 2023, 15:25

            @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 28 Oct 2023, 11:23 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 4 Jan 2024, 09:42 last edited by
              #21
              This post is deleted!
              1 Reply Last reply
              0
              • V Offline
                V Offline
                Volker75
                wrote on 5 Jan 2024, 11:36 last edited by
                #22

                Hallo, I am also running into the issue of "[qt/stdout] ERROR: Could not find dependency: libmimerapi.so".
                Well, I am using SQL in my Qt project and it is running fine. But I also can't fine a file "libmimerapi.so" on my hard disk.
                Anyone solved this problem already?

                J 1 Reply Last reply 5 Jan 2024, 11:43
                0
                • V Volker75
                  5 Jan 2024, 11:36

                  Hallo, I am also running into the issue of "[qt/stdout] ERROR: Could not find dependency: libmimerapi.so".
                  Well, I am using SQL in my Qt project and it is running fine. But I also can't fine a file "libmimerapi.so" on my hard disk.
                  Anyone solved this problem already?

                  J Online
                  J Online
                  JonB
                  wrote on 5 Jan 2024, 11:43 last edited by JonB 1 May 2024, 11:43
                  #23

                  @Volker75
                  https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/150

                  For some reason, linuxdeploy-plugin-qt started deploying the Qt6Sql module even though I do not use SQL anywhere in my project. This would not be a problem normally, but also if I run the linuxdeploy twice it fails on the second run because it is unable to locate libmimerapi.so

                  Something in your bundle must link to Qt6Sql. That's the only reason why this plugin would start shipping those files

                  V 1 Reply Last reply 5 Jan 2024, 11:51
                  0
                  • J JonB
                    5 Jan 2024, 11:43

                    @Volker75
                    https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/150

                    For some reason, linuxdeploy-plugin-qt started deploying the Qt6Sql module even though I do not use SQL anywhere in my project. This would not be a problem normally, but also if I run the linuxdeploy twice it fails on the second run because it is unable to locate libmimerapi.so

                    Something in your bundle must link to Qt6Sql. That's the only reason why this plugin would start shipping those files

                    V Offline
                    V Offline
                    Volker75
                    wrote on 5 Jan 2024, 11:51 last edited by
                    #24

                    @JonB hmm... not sure if that helps me, because I AM USING SQL. I can't skip that. I need SQL in my Qt project. And SQL is running fine if I run my application, but I can't deploy.
                    Thank you for the link. I will observe it.

                    C 1 Reply Last reply 5 Jan 2024, 11:58
                    0
                    • V Volker75
                      5 Jan 2024, 11:51

                      @JonB hmm... not sure if that helps me, because I AM USING SQL. I can't skip that. I need SQL in my Qt project. And SQL is running fine if I run my application, but I can't deploy.
                      Thank you for the link. I will observe it.

                      C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 5 Jan 2024, 11:58 last edited by
                      #25

                      @Volker75 If you don't need mimersql plugin then remove this sql plugin (the .so file) and try again. Does linuxdeployqt works then as expected?

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      V 1 Reply Last reply 5 Jan 2024, 12:08
                      0
                      • C Christian Ehrlicher
                        5 Jan 2024, 11:58

                        @Volker75 If you don't need mimersql plugin then remove this sql plugin (the .so file) and try again. Does linuxdeployqt works then as expected?

                        V Offline
                        V Offline
                        Volker75
                        wrote on 5 Jan 2024, 12:08 last edited by
                        #26

                        @Christian-Ehrlicher Good question. I am using mySQL und SQLite. I just deleted the mimersql from the Qt folder and now linuxdeploy run into the next missing one:
                        [qt/stdout] ERROR: Could not find dependency: libQt6SerialPort.so.6

                        I am not using SerialPort stuff and I didn't added that in my project file.
                        hmm...
                        Ok, I will delete that also or try the new Qt 6.7 beta. I will let you know more later.

                        C 1 Reply Last reply 5 Jan 2024, 12:15
                        0
                        • V Volker75
                          5 Jan 2024, 12:08

                          @Christian-Ehrlicher Good question. I am using mySQL und SQLite. I just deleted the mimersql from the Qt folder and now linuxdeploy run into the next missing one:
                          [qt/stdout] ERROR: Could not find dependency: libQt6SerialPort.so.6

                          I am not using SerialPort stuff and I didn't added that in my project file.
                          hmm...
                          Ok, I will delete that also or try the new Qt 6.7 beta. I will let you know more later.

                          C Offline
                          C Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote on 5 Jan 2024, 12:15 last edited by
                          #27

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

                          I am not using SerialPort stuff and I didn't added that in my project file.

                          I would guess you link against it somewhere. Please take a look with ldd which dependencies your executable has.

                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                          Visit the Qt Academy at https://academy.qt.io/catalog

                          V G 2 Replies Last reply 5 Jan 2024, 13:18
                          0
                          • C Christian Ehrlicher
                            5 Jan 2024, 12:15

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

                            I am not using SerialPort stuff and I didn't added that in my project file.

                            I would guess you link against it somewhere. Please take a look with ldd which dependencies your executable has.

                            V Offline
                            V Offline
                            Volker75
                            wrote on 5 Jan 2024, 13:18 last edited by Volker75 1 May 2024, 13:19
                            #28

                            @Christian-Ehrlicher No, I am not using the serial stuff. It wasn't even installed, so I wasn't able to delete it.

                            I installed Qt 6.7.0 and also added that serial plugin. Now it finished the linuxdeploy. :-)

                            I will try without the serial plugin tomorrow, since i didn't add that in the project file and it is also not visible with "ldd". So it should work without.

                            Thank you for your help.
                            Have a nice weekend.

                            1 Reply Last reply
                            0
                            • C Christian Ehrlicher
                              5 Jan 2024, 12:15

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

                              I am not using SerialPort stuff and I didn't added that in my project file.

                              I would guess you link against it somewhere. Please take a look with ldd which dependencies your executable has.

                              G Offline
                              G Offline
                              gabr369
                              wrote on 10 Jan 2024, 01:45 last edited by
                              #29

                              @Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:

                              find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql)
                              find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
                              

                              my first try was the following:

                              ./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake
                              ...
                              ERROR: ldd outputLine: "libmimerapi.so => not found"
                              ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
                              

                              the ldd:

                              ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so
                              ...
                              libmimerapi.so => not found
                              ...
                              
                              

                              then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:

                              ...
                              ERROR: ldd outputLine: "libodbc.so.2 => not found"
                              ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
                              

                              i removed it too then:

                              ERROR: ldd outputLine: "libpq.so.5 => not found"
                              ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
                              

                              i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.

                              J G 2 Replies Last reply 10 Jan 2024, 06:26
                              0
                              • G gabr369
                                10 Jan 2024, 01:45

                                @Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:

                                find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql)
                                find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
                                

                                my first try was the following:

                                ./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake
                                ...
                                ERROR: ldd outputLine: "libmimerapi.so => not found"
                                ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
                                

                                the ldd:

                                ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so
                                ...
                                libmimerapi.so => not found
                                ...
                                
                                

                                then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:

                                ...
                                ERROR: ldd outputLine: "libodbc.so.2 => not found"
                                ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
                                

                                i removed it too then:

                                ERROR: ldd outputLine: "libpq.so.5 => not found"
                                ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
                                

                                i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.

                                J Online
                                J Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on 10 Jan 2024, 06:26 last edited by
                                #30

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

                                it does not found shared library

                                Which library?

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

                                1 Reply Last reply
                                0
                                • G gabr369
                                  10 Jan 2024, 01:45

                                  @Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:

                                  find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql)
                                  find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
                                  

                                  my first try was the following:

                                  ./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake
                                  ...
                                  ERROR: ldd outputLine: "libmimerapi.so => not found"
                                  ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
                                  

                                  the ldd:

                                  ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so
                                  ...
                                  libmimerapi.so => not found
                                  ...
                                  
                                  

                                  then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:

                                  ...
                                  ERROR: ldd outputLine: "libodbc.so.2 => not found"
                                  ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
                                  

                                  i removed it too then:

                                  ERROR: ldd outputLine: "libpq.so.5 => not found"
                                  ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
                                  

                                  i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.

                                  G Offline
                                  G Offline
                                  gabr369
                                  wrote on 11 Jan 2024, 03:39 last edited by gabr369 1 Nov 2024, 03:41
                                  #31

                                  @jsulm i dont know, its simply an alert from gnome or something, which says: 'there isnt app for file: "shared library" <find program> <Ok>.

                                  J 1 Reply Last reply 11 Jan 2024, 07:09
                                  0
                                  • G gabr369
                                    11 Jan 2024, 03:39

                                    @jsulm i dont know, its simply an alert from gnome or something, which says: 'there isnt app for file: "shared library" <find program> <Ok>.

                                    J Online
                                    J Online
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 11 Jan 2024, 07:09 last edited by
                                    #32

                                    @gabr369 Are you trying to execute a library? What exact file are you trying to execute?

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

                                    G 1 Reply Last reply 11 Jan 2024, 15:44
                                    0
                                    • J jsulm
                                      11 Jan 2024, 07:09

                                      @gabr369 Are you trying to execute a library? What exact file are you trying to execute?

                                      G Offline
                                      G Offline
                                      gabr369
                                      wrote on 11 Jan 2024, 15:44 last edited by
                                      #33

                                      @jsulm I simply double clicked the executable in the file manager. (file named QEstoqueLoja)

                                      1 Reply Last reply
                                      0
                                      • V Offline
                                        V Offline
                                        Volker75
                                        wrote on 11 Jan 2024, 17:30 last edited by Volker75 1 Nov 2024, 17:31
                                        #34

                                        There are 2 variants:
                                        Delete the other stuff from the qt folder.

                                        Or install the libaries.
                                        You need to install this one if you don't want to delete them:
                                        sudo apt install libodbc-dev
                                        sudo apt install libpq-dev
                                        sudo apt install libmysqlclient-dev
                                        sudo apt install libqsqlmimer-dev

                                        G 1 Reply Last reply 12 Jan 2024, 01:43
                                        0
                                        • V Volker75
                                          11 Jan 2024, 17:30

                                          There are 2 variants:
                                          Delete the other stuff from the qt folder.

                                          Or install the libaries.
                                          You need to install this one if you don't want to delete them:
                                          sudo apt install libodbc-dev
                                          sudo apt install libpq-dev
                                          sudo apt install libmysqlclient-dev
                                          sudo apt install libqsqlmimer-dev

                                          G Offline
                                          G Offline
                                          gabr369
                                          wrote on 12 Jan 2024, 01:43 last edited by
                                          #35

                                          @Volker75 i tried install those libraries but libodbc-dev and libqsqlmimer-dev doesnt seem to be in ubunto 20.04 repo. (not found)
                                          but i find something interesting:

                                          the app runs if you call it by terminal, like:

                                          ./qestoqueloja/QEstoqueLoja
                                          

                                          and i tried now with all sql plugins .so in qt folder and despise the error given by linuxdeployqt (ERROR: ldd outputLine: "libmimerapi.so => not found"), the program runs like intended with sqlite db and all (but the sqlite db remains in the folder where i called the executable, which i think is my code fault or something).
                                          trying linuxdeployqt with all sql plugins deleted in qt folder doesnt give errors and also can be called with just terminal and not ubuntu file manager. but the database doesnt work.
                                          now i have to find a way to run the program in file manager, not just terminal.

                                          V G 2 Replies Last reply 12 Jan 2024, 18:41
                                          0

                                          • Login

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