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. Does Qt 5.0.0 MySQL Driver work for 64 bit on Windows?
Qt 6.11 is out! See what's new in the release blog

Does Qt 5.0.0 MySQL Driver work for 64 bit on Windows?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 2.6k 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.
  • S Offline
    S Offline
    soroush
    wrote on last edited by
    #1

    Can anyone confirm using MySQL driver with Qt 5.0.0?
    I'm going to report a bug for it.

    Operating System: Windows 7 x64
    MySQL version: 5.5.13
    Qt: 5.0.0 x64
    Compiler: MinGW x64

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      i don't think that it could be a problem if you use 64 bit version of MySQL connector. but i don't know if there's 64bit version of libmysql / mingw compiled version unless you have its source code and compile with the compiler of your choice.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        64 versions of MySQL connectors are provided by Oracle. No problem with bitness in MySQL. plain C++ works perfectly. The issue is directly related to Qt not MySQL.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mohsen
          wrote on last edited by
          #4

          i'm using Qt5 W/msvc and mysql. works fine.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            soroush
            wrote on last edited by
            #5

            [quote author="Mohsen" date="1359437370"]i'm using Qt5 W/msvc and mysql. works fine.[/quote]

            mysql.dll is a MSVC binary. I think that's the issue. I exported symbols to MinGW, though seems not working:
            @
            gendef libmysql.dll
            dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a
            @

            The strange fact is that I don't get any linkage error neither when compiling Qt nor application.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mohsen
              wrote on last edited by
              #6
              • try adding "-k" option where calling "dlltool"
              1 Reply Last reply
              0
              • S Offline
                S Offline
                soroush
                wrote on last edited by
                #7

                That is not matter of MySQL. Connectors work fine with mingw. It's all about Qt.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mohsen
                  wrote on last edited by
                  #8

                  http://qt-project.org/forums/viewthread/24525
                  might help

                  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