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

Problem Compiling Mysql driver

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 3.5k 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.
  • E Offline
    E Offline
    evanxg852000
    wrote on last edited by
    #1

    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 .

    Evan-XG

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        evanxg852000
        wrote on last edited by
        #3

        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 directory c:/Qt/2010.04/qt/src/plugins/sqldrivers/mysql'

        there was error that mysql.h is not found

        i fixe that by including

        Evan-XG

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • E Offline
            E Offline
            evanxg852000
            wrote on last edited by
            #5

            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

            Evan-XG

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              sorry, but include what?

              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