Building the MySQL/MariaDB plugin for CentOS 8
-
I'm trying to build the mysql plugin for a Qt console application in CentOS 8. I've followed the directions from https://doc.qt.io/qt-5/sql-driver.html but it only builds the sqllite driver.
I've run:
qmake -- MYSQL_PREFIX=/usr/include/mysql
but it still says that only the sqllite driver is available. Running
make sub_mysql
doesn't work either, because the previous step didn't.
How do I build the MariaDB/MySQL driver on CentOS 8?
-
remove config.cache, config.log and run qmake again. Then take a look into config.log why mysql is not found.
-
@GregB Then please mark this topic as solved, thx.
-
i want to know how to resolve it,is the path “/usr/include/mysql" error?thanks!hope your reply!
-
i want to know how to resolve it,is the path “/usr/include/mysql" error?thanks!hope your reply!
@yixinshark said in Building the MySQL/MariaDB plugin for CentOS 8:
is the path “/usr/include/mysql" error?
Depends on your system. Did you check where you have mysql header files?
And what exact problem do you actually have? -
@yixinshark said in Building the MySQL/MariaDB plugin for CentOS 8:
is the path “/usr/include/mysql" error?
Depends on your system. Did you check where you have mysql header files?
And what exact problem do you actually have?@jsulm thank you very much,i had resolved my problem,not installed ”mysql-devel"。