Here you can find answers to questions about how the board works. Use the links or search box below to find your way around.
Make sure you have development files for MySQL installed (You can try to locate mysql.h to verify this). If you don't have them, you have to install them before continuing. If you use package managers under Unix-like systems, the package is often called mysql-devel or mysql-dev. Under Windows you need to install MySQL with development files.
Pass option "-qt-sql-mysql" to configure – this will compile MySQL support directly into Qt.
Pass option "-plugin-sql-mysql" to configure – this will compile MySQL support as plugin.
If your MySQL header files and libraries are not in the default include/lib path of your system, remember to add "-I" and "-L" options (with proper arguments) to configure too.
If you don't have MySQL development files on your system or don't pass the -I and -L options if they are in a non-default place, Qt build process may abort later with message "MySQL support cannot be enabled due to functionality tests!"
Start compilation process using make, gmake or nmake (depending on your platform).
You can find an article with more detailed instructions in our wiki: Building the QMYSQL plugin on Windows using MinGW.
No, you don't. After configure run the build process like this (remember to change working directory to the one containing configure (or configure.exe) first):
cd src make sub-plugins
If you use nmake, mingw-make or gmake instead of make, just substitute it in the command above.
Example:
If you have "/usr/include/mysql/mysql.h", pass -I/usr/include/mysql to configure.
Example:
If your mysql.lib (or libmysqlclient) resides in "C:\mysql4.1\", pass "-LC:\mysql4.1\" to configure.