Then I build the MySQL driver plugin make sub-mysql Prior to reconfiguration, make sure you remove any leftovers from Once everything is built, you must run 'make install'. Which yields Running configuration tests.ĭB2 (IBM). I executed the previously installed qmake and provided the path to my symbolic links /opt/Qt5.12/bin/qmake - MYSQL_PREFIX=/usr/lib/arm-linux-gnueabihf Thus I changed into the the source directory: cd qt-everywhere-src-5.12.4/qtbase/src/plugins/sqldrivers/ Thereafter I followed the official Qt documentation on "How to Build the QMYSQL Plugin on Unix and macOS" ( ): Sudo ln -s /usr/lib/arm-linux-gnueabihf/libmysqlclient.so /usr/lib/arm-linux-gnueabihf/libmysqlclient.so Sudo ln -s /usr/lib/arm-linux-gnueabihf/libmysqlclient_r.so /usr/lib/arm-linux-gnueabihf/libmysqlclient_r.so Sudo ln -s /usr/lib/arm-linux-gnueabihf/libmysqlclient_r.a /usr/lib/arm-linux-gnueabihf/libmysqlclient_r.a I'm not sure if this next step is really required, but then I created symbolic links to redirect from MySQL to MariaDB in order to assure that the qmake will find the expected MySQL libraries: sudo ln -s /usr/lib/arm-linux-gnueabihf/libmariadbclient.a /usr/lib/arm-linux-gnueabihf/libmysqlclient.a I found a solution although this is not the straightforward way to compile all at once.įirst I compiled and installed Qt 5.12.4 without the MySQL driver plugin as described in the tutorial referenced in my original question. Does anybody know, how to build Qt's MySql driver using the MariaDB libraries or in worst case how to install the MySQL libraries on Raspbian Buster? I assume that this is due to that the MySQL libraries were exchanged by MariaDB libraries in Raspbian Buster. The output results in the following error: ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed. qt-everywhere-src-5.12.4/configure -platform linux-rpi-g++ -v -opengl es2 -eglfs -no-gtk -opensource -confirm-license -release -reduce-exports -force-pkg-config -nomake examples -no-compile-examples -skip qtwayland -skip qtwebengine -no-feature-geoservices_mapboxgl -qt-pcre -no-pch -ssl -evdev -system-freetype -fontconfig -glib -prefix /opt/Qt5.12 -qpa eglfs -sql-mysql However, if I add the option -sql-mysql to the command PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig. Building Qt itself worked fine by following this tutorial: I try to build the MySQL plugin on a Raspbian Buster with C++ and Qt 5.12.4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |