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
Forum Updated to NodeBB v4.3 + New Features

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.
  • jsulmJ jsulm

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

    TheCipo76T Offline
    TheCipo76T Offline
    TheCipo76
    wrote on 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
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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

      TheCipo76T 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

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

        TheCipo76T Offline
        TheCipo76T Offline
        TheCipo76
        wrote on last edited by
        #5

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

        jsulmJ 1 Reply Last reply
        0
        • TheCipo76T TheCipo76

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

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

          TheCipo76T 1 Reply Last reply
          0
          • jsulmJ jsulm

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

            TheCipo76T Offline
            TheCipo76T Offline
            TheCipo76
            wrote on last edited by
            #7

            @jsulm you mean "mysqlclient.lib"?

            Christian EhrlicherC 1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              yes, that one

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

              1 Reply Last reply
              0
              • TheCipo76T TheCipo76

                @jsulm you mean "mysqlclient.lib"?

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 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

                TheCipo76T 1 Reply Last reply
                1
                • TheCipo76T Offline
                  TheCipo76T Offline
                  TheCipo76
                  wrote on last edited by
                  #10
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    @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

                    TheCipo76T Offline
                    TheCipo76T Offline
                    TheCipo76
                    wrote on 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

                    jsulmJ 1 Reply Last reply
                    0
                    • TheCipo76T TheCipo76

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

                      This is app folder

                      appFolder.JPG

                      and this is sqldrivers folder

                      sqlDriverFolder.JPG

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

                      TheCipo76T 1 Reply Last reply
                      0
                      • jsulmJ jsulm

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

                        TheCipo76T Offline
                        TheCipo76T Offline
                        TheCipo76
                        wrote on last edited by
                        #13

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

                        how can i deploy it?

                        jsulmJ 1 Reply Last reply
                        0
                        • TheCipo76T TheCipo76

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

                          how can i deploy it?

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @TheCipo76 You just copy it to your deployed application folder

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

                          TheCipo76T 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @TheCipo76 You just copy it to your deployed application folder

                            TheCipo76T Offline
                            TheCipo76T Offline
                            TheCipo76
                            wrote on 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 last edited by Bonnie
                              #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
                              1
                              • B Bonnie

                                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 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
                                0
                                • TheCipo76T Offline
                                  TheCipo76T Offline
                                  TheCipo76
                                  wrote on 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
                                  • TheCipo76T TheCipo76 has marked this topic as solved on
                                  • aha_1980A aha_1980

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

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

                                    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