Building QT Mysql Driver on Ubuntu 16.04 for Qt 5.14 Desktop
k b Uncategorized January 7, 2018 1 Minute
Install dependencies:
libssl-dev (required)
mysql-client
libmysqlclient-dev
libmysql+±dev (check this)
libmysqlcppconn-dev (check this)
sudo apt-get install libssl-dev
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev
sudo apt-get install libmysql+±dev
sudo apt-get install libmysqlcppconn-dev
https://bugreports.qt.io/browse/QTBUG-62078
https://freehealth.io/en/code/buildsystem/qmysql-plugin#troubleshooting
https://forum.qt.io/topic/80882/error-while-compiling-qt-mysql-driver/20
If qtsqldrivers-config.pri is missing:
Go to :
/Qt/5.10.0/Src/qtbase/src/plugins/sqldrivers
Run qmake:
…/…/…/…/…/gcc_64/bin/qmake sqldrivers.pro
Configure summary:
Qt Sql:
DB2 (IBM) ………………………… no
Int