Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88661

How to build MySQL plugin in Qt 6

    XMLWordPrintable

Details

    • Windows
    • 0c7042defaf3a2a97aebc6f652b4d34229093a5a (qt/qtbase/dev) 9e287b50ee77d7a9a52483e86954d0eb2f5760df (qt/qtbase/6.0)

    Description

      I have tried with this configure step (powershell):

       

      & "$qt_src_base_folder\configure.bat" -cmake -debug-and-release -opensource -confirm-license -platform win32-msvc -opengl desktop -no-dbus -no-icu -no-fontconfig -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebview -skip qtscript -mp -optimize-size -shared -prefix $prefix_folder -openssl-linked -DOPENSSL_ROOT_DIR="$openssl_base_folder" -DMYSQL_PATH="c:\Programy\MariaDB" -DMySQL_LIBRARIES="$mysql_lib_folder" -DMySQL_INCLUDE_DIRS="$mysql_include_folder"
      

      So I tried "-DMYSQL_PATH", "DMySQL_LIBRARIES" and "-DMySQL_INCLUDE_DIRS" and those variables point to valid mariaDB installation but no. No success.

       

      I get "-- Could NOT find MySQL (missing: MySQL_LIBRARIES MySQL_INCLUDE_DIRS)" as output of configure.

      How to tell configure where to look for my mariaDB files. And additionally, how to tell configure to link my resulting qmysql.dll plugin against some libs? In Qt5 build I used

      MYSQL_LIBS="-llibmariadb"
      

      environment variable to do that.

       

      Thank you.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              skunkos Martin Rotter
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes