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. Qt MySQL Driver Mingw32-make not working
Forum Updated to NodeBB v4.3 + New Features

Qt MySQL Driver Mingw32-make not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
46 Posts 6 Posters 7.5k Views 3 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.
  • jsulmJ jsulm

    @hobbyProgrammer Can you show your current configure call?

    H Offline
    H Offline
    hobbyProgrammer
    wrote on last edited by
    #41

    @jsulm

    i tried:

    configure.exe -debug-and-release -platform win32-g++ -qt-sql-mysql -I C:\MySQL\include -L C:\MySQL\lib

    which gave me this error:

    ERROR: Invalid value given for boolean command line option 'sql-mysql'.
    

    configure.exe -debug-and-release -platform win32-g++ -sql-mysql -I C:\MySQL\include -L C:\MySQL\lib

    which gave me this error:

    ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed.
    
    jsulmJ 1 Reply Last reply
    0
    • H hobbyProgrammer

      @jsulm

      i tried:

      configure.exe -debug-and-release -platform win32-g++ -qt-sql-mysql -I C:\MySQL\include -L C:\MySQL\lib

      which gave me this error:

      ERROR: Invalid value given for boolean command line option 'sql-mysql'.
      

      configure.exe -debug-and-release -platform win32-g++ -sql-mysql -I C:\MySQL\include -L C:\MySQL\lib

      which gave me this error:

      ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed.
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #42

      @hobbyProgrammer It should be -sql-mysql
      Check the configure log to see what exactly is missing.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #43

        I still don't understand why you try to compile Qt just to create the mysql plugin...

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        H 1 Reply Last reply
        1
        • Christian EhrlicherC Christian Ehrlicher

          I still don't understand why you try to compile Qt just to create the mysql plugin...

          H Offline
          H Offline
          hobbyProgrammer
          wrote on last edited by
          #44

          @Christian-Ehrlicher I am following this tutorial:
          https://forum.qt.io/topic/40672/how-to-create-the-plugin-of-mysql-for-qt/34

          Should I just do the qmake for the sqldriver? or what else do you recommend?

          so only qmake "MYSQL_INCDIR+=<path>" "MYSQL_LIBS+=<path>" ?

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @hobbyProgrammer It should be -sql-mysql
            Check the configure log to see what exactly is missing.

            H Offline
            H Offline
            hobbyProgrammer
            wrote on last edited by
            #45

            @jsulm Hi,

            There's so much there...

            I managed to get it down to this:

            None of [libgds32_ms.dll.a libgds32_ms.a gds32_ms.dll.a gds32_ms.a gds32_ms.lib] found in [] and global paths.
              => source produced no result.
            Trying source 1 (type inline) of library ibase ...
              => source failed condition '!config.win32'.
            test config.qtbase_sqldrivers.libraries.ibase FAILED
            loaded result for library config.qtbase_sqldrivers.libraries.mysql
            Trying source 0 (type mysqlConfig) of library mysql ...
            mysql_config not found.
              => source produced no result.
            Trying source 1 (type mysqlConfig) of library mysql ...
            mysql_config not found.
              => source produced no result.
            Trying source 2 (type mysqlConfig) of library mysql ...
            mysql_config not found.
              => source produced no result.
            Trying source 3 (type mysqlConfig) of library mysql ...
            mysql_config not found.
              => source produced no result.
            Trying source 4 (type inline) of library mysql ...
              => source failed condition '!config.win32'.
            Trying source 5 (type inline) of library mysql ...
            
            1 Reply Last reply
            0
            • M Offline
              M Offline
              mashood45
              Banned
              wrote on last edited by mashood45
              #46
              This post is deleted!
              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