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. Windows Deployment
Servers for Qt installer are currently down

Windows Deployment

Scheduled Pinned Locked Moved Solved General and Desktop
19 Posts 5 Posters 724 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.
  • T Offline
    T Offline
    TheCipo76
    wrote on 28 Jun 2024, 08:47 last edited by
    #1

    Hi to all,
    i've created an application that works correctly and connecting to remote mysql database (Windows 10)
    i've deployed my application following this step:

    cd .. app exe file path..
    windeployqt . --quick --no-translation
    (i've also tried with --compiler-runtime option but with same result..)

    on my pc work fine but when i copy the app folder to another pc
    application run correctly but give me "Drivers not loaded" error

    the dll seems to be ok (i've checked the dependency but everything is ok)

    Any ideas?
    Thanks in advance

    J 1 Reply Last reply 28 Jun 2024, 08:49
    0
    • T TheCipo76
      28 Jun 2024, 08:47

      Hi to all,
      i've created an application that works correctly and connecting to remote mysql database (Windows 10)
      i've deployed my application following this step:

      cd .. app exe file path..
      windeployqt . --quick --no-translation
      (i've also tried with --compiler-runtime option but with same result..)

      on my pc work fine but when i copy the app folder to another pc
      application run correctly but give me "Drivers not loaded" error

      the dll seems to be ok (i've checked the dependency but everything is ok)

      Any ideas?
      Thanks in advance

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 28 Jun 2024, 08:49 last edited by
      #2

      @TheCipo76 said in Windows Deployment:

      "Drivers not loaded" error

      Can you be more specific? What drivers?
      Is it about MySQL plug-in loading? If so, did you also deploy the MySQL client library?

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

      T 1 Reply Last reply 28 Jun 2024, 09:11
      0
      • J jsulm
        28 Jun 2024, 08:49

        @TheCipo76 said in Windows Deployment:

        "Drivers not loaded" error

        Can you be more specific? What drivers?
        Is it about MySQL plug-in loading? If so, did you also deploy the MySQL client library?

        T Offline
        T Offline
        TheCipo76
        wrote on 28 Jun 2024, 09:11 last edited by TheCipo76
        #3

        @jsulm Yes MySql drivers

        how i can deploy MySql client library? with windeploy --includeplugins <> option??

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 28 Jun 2024, 09:16 last edited by
          #4

          Windeploy can't help here. You have to do it manually.

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

          T 1 Reply Last reply 28 Jun 2024, 09:18
          0
          • C Christian Ehrlicher
            28 Jun 2024, 09:16

            Windeploy can't help here. You have to do it manually.

            T Offline
            T Offline
            TheCipo76
            wrote on 28 Jun 2024, 09:18 last edited by
            #5

            @Christian-Ehrlicher how can i do it? can you help me with an example?

            J 1 Reply Last reply 28 Jun 2024, 09:22
            0
            • T TheCipo76
              28 Jun 2024, 09:18

              @Christian-Ehrlicher how can i do it? can you help me with an example?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 28 Jun 2024, 09:22 last edited by
              #6

              @TheCipo76 Just copy the MySQL client library next to your executable

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

              T 1 Reply Last reply 28 Jun 2024, 09:26
              0
              • J jsulm
                28 Jun 2024, 09:22

                @TheCipo76 Just copy the MySQL client library next to your executable

                T Offline
                T Offline
                TheCipo76
                wrote on 28 Jun 2024, 09:26 last edited by
                #7

                @jsulm you mean "mysqlclient.lib"?

                C 1 Reply Last reply 28 Jun 2024, 09:32
                0
                • J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 28 Jun 2024, 09:29 last edited by
                  #8

                  yes, that one

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

                  1 Reply Last reply
                  0
                  • T TheCipo76
                    28 Jun 2024, 09:26

                    @jsulm you mean "mysqlclient.lib"?

                    C Offline
                    C Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on 28 Jun 2024, 09:32 last edited by
                    #9

                    @TheCipo76 said in Windows Deployment:

                    mysqlclient.lib

                    This is not a dll so what do you want with this?
                    RTM: https://doc.qt.io/qt-6/sql-driver.html#qmysql

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

                    T 1 Reply Last reply 28 Jun 2024, 09:48
                    1
                    • T Offline
                      T Offline
                      TheCipo76
                      wrote on 28 Jun 2024, 09:38 last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • C Christian Ehrlicher
                        28 Jun 2024, 09:32

                        @TheCipo76 said in Windows Deployment:

                        mysqlclient.lib

                        This is not a dll so what do you want with this?
                        RTM: https://doc.qt.io/qt-6/sql-driver.html#qmysql

                        T Offline
                        T Offline
                        TheCipo76
                        wrote on 28 Jun 2024, 09:48 last edited by TheCipo76
                        #11

                        @Christian-Ehrlicher i don't know.. i'm just following @jsulm

                        This is app folder

                        appFolder.JPG

                        and this is sqldrivers folder

                        sqlDriverFolder.JPG

                        J 1 Reply Last reply 28 Jun 2024, 10:40
                        0
                        • T TheCipo76
                          28 Jun 2024, 09:48

                          @Christian-Ehrlicher i don't know.. i'm just following @jsulm

                          This is app folder

                          appFolder.JPG

                          and this is sqldrivers folder

                          sqlDriverFolder.JPG

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 28 Jun 2024, 10:40 last edited by
                          #12

                          @TheCipo76 Sorry, didn't realized you posted lib, of course you need to deploy dll. lib is for linking, not running.

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

                          T 1 Reply Last reply 28 Jun 2024, 13:19
                          0
                          • J jsulm
                            28 Jun 2024, 10:40

                            @TheCipo76 Sorry, didn't realized you posted lib, of course you need to deploy dll. lib is for linking, not running.

                            T Offline
                            T Offline
                            TheCipo76
                            wrote on 28 Jun 2024, 13:19 last edited by
                            #13

                            @jsulm no problem.. you are helping me and i appreciate it ;)

                            how can i deploy it?

                            J 1 Reply Last reply 28 Jun 2024, 13:21
                            0
                            • T TheCipo76
                              28 Jun 2024, 13:19

                              @jsulm no problem.. you are helping me and i appreciate it ;)

                              how can i deploy it?

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 28 Jun 2024, 13:21 last edited by
                              #14

                              @TheCipo76 You just copy it to your deployed application folder

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

                              T 1 Reply Last reply 28 Jun 2024, 13:30
                              0
                              • J jsulm
                                28 Jun 2024, 13:21

                                @TheCipo76 You just copy it to your deployed application folder

                                T Offline
                                T Offline
                                TheCipo76
                                wrote on 28 Jun 2024, 13:30 last edited by
                                #15

                                @jsulm i've searched mysqlclient.dll but i have none with this name
                                i've only mysqlclient.lib

                                1 Reply Last reply
                                0
                                • B Offline
                                  B Offline
                                  Bonnie
                                  wrote on 1 Jul 2024, 01:51 last edited by Bonnie 7 Jan 2024, 01:55
                                  #16

                                  It should be libmysql.dll. You already have it in your sqldrivers folder, move it to the app folder.
                                  Also, where does this dll file come from? If it is from mysql package there is a chance that it also need msvc and openssl runtime to load.
                                  If you still cannot load the plugin, you need to check that with DependencyWalker

                                  aha_1980A 1 Reply Last reply 2 Jul 2024, 09:33
                                  1
                                  • B Bonnie
                                    1 Jul 2024, 01:51

                                    It should be libmysql.dll. You already have it in your sqldrivers folder, move it to the app folder.
                                    Also, where does this dll file come from? If it is from mysql package there is a chance that it also need msvc and openssl runtime to load.
                                    If you still cannot load the plugin, you need to check that with DependencyWalker

                                    aha_1980A Offline
                                    aha_1980A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on 2 Jul 2024, 09:33 last edited by
                                    #17

                                    @Bonnie Unfortunately Dependency Walker does not help when the DLL is loaded dynamically at runtime :(

                                    Otherwise you are correct.

                                    Regards

                                    Qt has to stay free or it will die.

                                    B 1 Reply Last reply 3 Jul 2024, 01:34
                                    0
                                    • T Offline
                                      T Offline
                                      TheCipo76
                                      wrote on 2 Jul 2024, 15:48 last edited by
                                      #18

                                      I've removed and reinstalled MySql connector and
                                      re-build the drivers and now all works
                                      Thanks to all

                                      1 Reply Last reply
                                      0
                                      • T TheCipo76 has marked this topic as solved on 2 Jul 2024, 15:49
                                      • aha_1980A aha_1980
                                        2 Jul 2024, 09:33

                                        @Bonnie Unfortunately Dependency Walker does not help when the DLL is loaded dynamically at runtime :(

                                        Otherwise you are correct.

                                        Regards

                                        B Offline
                                        B Offline
                                        Bonnie
                                        wrote on 3 Jul 2024, 01:34 last edited by
                                        #19

                                        @aha_1980 Actually I mean using Dependency Walker to check libmysql.dll :)

                                        1 Reply Last reply
                                        0

                                        1/19

                                        28 Jun 2024, 08:47

                                        • Login

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