Building 32 bit Qt Mysql plugin fails with MinGw

I am creating a MySQL plugin for Qt 4.4.3 Open Source Edition ( Qt Documentation ) and using the command:

cd %QTDIR%\src\plugins\sqldrivers\mysql
qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro
make

      

I was able to create it for my 64bit Qt just fine using the 64bit MySQL dev files (using nmake). However, 32-bit build (with mingw-make) fails with communication issues:

Creating library file: c:\Coding\Qt\4.4.3\plugins\sqldrivers\libqsqlmysqld4.a
tmp/obj/debug_shared/qsql_mysql.o(.text+0x10d): In function `Z5codecP8st_mysql':
...lots of same stuff...

      

The dev files installed in the MySQL 5.1 32-bit and 64-bit libraries are also different: the 64-bit file contains libmysql.dll and six .lib files, while the 32-bit file contains those plus six .pdb files. Corresponds to this problem?

Can anyone build a 32 bit plugin with Qt 4.4.3 / MinGW using MySQL 5.1? Suggestions?

0


source to share


1 answer


use mysql-noinstall-5.1.14-beta-win32



+1


source







All Articles