Problem Compiling Mysql driver



  • Please I am having a issue to compiler the mysql plugin. I have just waste 4 days trying to compile mysql driver. I have followed the step : -install mysql with include file , use the command reimp.exe to produce lib file but at the last stage it gives me compilation Error . I am working on windows vista 32bit , with Qt SDK standard installation (Qt creator version April-2010) Please can anyone help me or drop me the mysql driver in binary format. I also read that it is to connect to mysql via ODBC I would like some example if any. thanks .



  • What error do you receive? Maybe you don't have folderpaths to mysql libs and header files in your environment variables?



  • here is the console output:

    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory c:/Qt/2010.04/qt/src/plugins/sqldrivers/mysql' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"\usr\local\include" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp mingw32-make[1]: Leaving directoryc:/Qt/2010.04/qt/src/plugins/sqldrivers/mysql'

    there was error that mysql.h is not found

    i fixe that by including


  • Moderators

    So where is the error there? That piece of log looks fine to me.



  • i comment the previous error because that could not be redirected to the console output file but the compilation is ok now
    the compilation finaly done there are the dll files in the plugin folder under
    now I am not able to do in my project :

    @#include <QtSql>@

    no such file or directory



  • sorry, but include what?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.