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?

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.7k 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.
  • Christian EhrlicherC Christian Ehrlicher

    @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 last edited by Volker75
    #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
    • Christian EhrlicherC Christian Ehrlicher

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

      jsulmJ G 2 Replies Last reply
      0
      • G gabr369

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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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

          @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 last edited by gabr369
          #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>.

          jsulmJ 1 Reply Last reply
          0
          • G gabr369

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

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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
            0
            • jsulmJ jsulm

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

              G Offline
              G Offline
              gabr369
              wrote on 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 last edited by Volker75
                #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
                0
                • V Volker75

                  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 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
                  0
                  • G gabr369

                    @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 Offline
                    V Offline
                    Volker75
                    wrote on last edited by Volker75
                    #36

                    @gabr369 I am using Kubuntu 22.04. I don't know how to install that mimerapi. Looks like it is commercial only. I deleted it and it looks like running fine on my computer.
                    My "problem" is still, that linuxdeploy want to have the serial library. I don't understand why that is needed in my project. I don't use that library. "problem", because I can just add it and then it is running fine. But in fact i don't want to add it, since i shouldn't need it.
                    I am using QT += widgets, printsupport, sql, network and (sadly) webenginewidgets.
                    Maybe the serial stuff is needed by one of that?

                    SGaistS 1 Reply Last reply
                    0
                    • V Volker75

                      @gabr369 I am using Kubuntu 22.04. I don't know how to install that mimerapi. Looks like it is commercial only. I deleted it and it looks like running fine on my computer.
                      My "problem" is still, that linuxdeploy want to have the serial library. I don't understand why that is needed in my project. I don't use that library. "problem", because I can just add it and then it is running fine. But in fact i don't want to add it, since i shouldn't need it.
                      I am using QT += widgets, printsupport, sql, network and (sadly) webenginewidgets.
                      Maybe the serial stuff is needed by one of that?

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #37

                      @Volker75 hi,

                      It comes from the webengine module that requires the positioning module that requires serialport module (among others).

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      V 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        @Volker75 hi,

                        It comes from the webengine module that requires the positioning module that requires serialport module (among others).

                        V Offline
                        V Offline
                        Volker75
                        wrote on last edited by Volker75
                        #38

                        @SGaist Ok. Thank you. Sadly I need the webengine stuff only, because QTextDocument doesn't support some basic stuff (Right to left of tables, width and height of cells). By that my compressed project file size increase from less then 20MB to over 140MB :-(
                        The other thing why I don't like the webengine stuff too much is, because it makes trouble with Windows. I can compile it only with MVC but not with gcc. I know it is written in the documentation that gcc is not supported on Windows. I just wonder a bit if that might change soon, since under Linux gcc and webengine works fine. The problem with MVC is, that the runtime of my application is around 2 times slower if i compile it with Microsoft compiler. gcc is much faster and my application is sadly very time critical :-(
                        Anybody knows if anyone is trying to fix that compiling problem of the webengine with gcc under Windows?

                        1 Reply Last reply
                        0
                        • G gabr369

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

                          G Offline
                          G Offline
                          gabr369
                          wrote on last edited by
                          #39

                          @gabr369 I found another issue: I cant make appimages with linuxdeployqt, here is the result:

                          ./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja-linux/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake -appimage
                          ...
                          ERROR: ldd outputLine: "libmimerapi.so => not found"
                          ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
                          ERROR: Please ensure that all libraries can be found by ldd. Aborting.
                          

                          and this time the appimage file is not even generated.

                          V 1 Reply Last reply
                          0
                          • G gabr369

                            @gabr369 I found another issue: I cant make appimages with linuxdeployqt, here is the result:

                            ./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja-linux/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake -appimage
                            ...
                            ERROR: ldd outputLine: "libmimerapi.so => not found"
                            ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
                            ERROR: Please ensure that all libraries can be found by ldd. Aborting.
                            

                            and this time the appimage file is not even generated.

                            V Offline
                            V Offline
                            Volker75
                            wrote on last edited by
                            #40

                            @gabr369 Yes. Like i wrote above I deleted that file. As far as i understood that is "only" an other commercial sql api that was introduced with Qt 6.6.
                            You can download a test version for development here:
                            https://developer.mimer.com/products/downloads/mimer-sql-for-linux/

                            But if i understood correct, then you need to buy a license if you want to use it. That is why i didn't tried it and only deleted the file from the qt plugin folder.

                            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