Does Qt 5.0.0 MySQL Driver work for 64 bit on Windows?
-
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 -
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.
-
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.
-
i'm using Qt5 W/msvc and mysql. works fine.
-
[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.
-
- try adding "-k" option where calling "dlltool"
-
That is not matter of MySQL. Connectors work fine with mingw. It's all about Qt.
-