


Qmake - MYSQL_INCDIR = "C:/Program Files/MySQL/MySQL Connector C 6.1/include" MYSQL_LIBDIR = "C:/Program Files/MySQL/MySQL Connector C 6.1/lib" Tell qmake where to find the MySQL / MariaDB header files and shared libraries (here it is assumed that MySQL / MariaDB is installed in /usr/local) and run make:Ĭd %QTDIR %\qtbase\src\plugins\sqldrivers Depending on your Linux distribution, you may need to install a package which is usually called "mysql-devel" or "mariadb-devel".

You need the MySQL / MariaDB header files, as well as the shared library libmysqlclient.so / libmariadb.so. How to Build the QMYSQL Plugin on Unix and macOS Please refer to the MySQL documentation, chapter "libmysqld, the Embedded MySQL Server Library" for more information about the MySQL embedded server. This can be done by adding MYSQL_LIBS=-lmysqld to the configure command line. To use the embedded MySQL server, simply link the Qt plugin to libmysqld instead of libmysqlclient. With the embedded MySQL server, a MySQL server is not required to use MySQL functionality. The MySQL embedded server is a drop-in replacement for the normal client library.

Note: and are variables local to the current connection and will not be affected by queries sent from another host or connection. Prior to reconfiguration, make sure you remove any leftovers from the previous build. Once everything is built, you must run 'mingw32-make install'. Info: creating stash file C:\Qt5\ 5.13.2\Src\qtbase\src\plugins\sqldrivers\. Using Qt version 5.13.2 in C: /Qt5 / 5.13.2 /mingw73_64 /libĬ:\Qt5\ 5.13.2\Src\qtbase\src\plugins\sqldrivers >qmake - MYSQL_INCDIR = "C:/Program Files/MySQL/MySQL Connector C 6.1/include" MYSQL_LIBDIR = "C:/Program Files/MySQL/MySQL Connector C 6.1/lib" C:\Qt5\ 5.13.2\Src\qtbase\src\plugins\sqldrivers >qmake -version
