Unsolved Qt5.12.0 QMYSQL plugin
-
I downloaded qt-unified-linux-x64-3.0.6-online.run from http://qt.mirrors.tds.net using this page https://www.qt.io/download-qt-installer?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce|6cb0de4f-9bb5-4778-ab02-bfb62735f3e5
-
The custom build logic has changed a bit. Are you following the guide ?
-
I've followed those instructions and rebuilt the entire QT by running the following commands from ~/Qt5.12.0/5.12.0/Src
./configure -sql-mysql
make installThat did still had the libqsmysql.so linking to libmysqlclient18 instead of libmysqlclient20.
Unfortunately, doing these additional commands
cd $QTDIR/qtbase/src/plugins/sqldrivers/mysql
make installLed to the current undefined reference compile issue
-
When calling
make install
, what was the folder used for the installation ? -
For ./configure -sql-mysql, make install was run in ~/Qt5.12.0/5.12.0/Src and for $QTDIR/qtbase/src/plugins/sqldrivers/mysql, make install was run in the $QTDIR/qtbase/src/plugins/sqldrivers/mysql
-
I meant the target folder.
-
Using MYSQL_PREFIX=/usr/include/mysql
and target is sub-mysql -
This post is deleted! -
This is meant to rebuild only the mysql plugin but ends up re-building all of Qt (with open source option)
-
I meant: what folder did you configure to have Qt installed to.
-
The default directory which I believe is ~/Qt5.12.0
-
Can you check that ?
Looking at the output of
make install
should show you exactly what is copied where. -
My Qt is installed in ~/Qt5.12.0. This has qt creator, qmake, gcc and android versions including the compiled libraries.
-
That I understood. Nevertheless, could you check as suggested the output of
make install
? -
The installation directory is /usr/local/Qt-5.12.0
-
Then that's where you custom built MySQL plugin can be found.
You likely have built it from a default configured Qt build hence that location.
-
@SGaist I tried doing a clean build today in ~/Qt5.12.0/5.12.0/Src with the following commands,
make clean
./configure -sql-mysql
make installI still ended up with the original errors regarding qt version and some functions not found.
Surprisingly, when I did
ldd /usr/local/Qt-5.12.0/plugins/sqldrivers/libqsqlmysql.soThere are no errors and it is linking to libmysqlclient.so.20 and using the qt that is in this location works flawlessly.
-
I recommend using out of source builds, so if something goes awry, you can nuke the build folder without having to look out for leftovers of previous builds.
-
@SGaist said in Qt5.12.0 QMYSQL plugin:
source
Thanks for the help. The current out of source build is missing the following modules/plugins
webenginewidgets positioning webviewCan you please point me to a linux version with sql, webenginewidgets, positioning and webview plugins that I can re-install?