我正在尝试编译qt和qt驱动程序使用https://wiki.qt.io/Building_Qt_5_from_Git文章我有一个MariaDB10.4,从官方网站安装,也有一个开发包
MariaDB-client-10.4.8-1.el7.centos.x86_64
MariaDB-devel-10.4.8-1.el7.centos.x86_64
MariaDB-compat-10.4.8-1.el7.centos.x86_64
MariaDB-common-10.4.8-1.el7.centos.x86_64
MariaDB-server-10.4.8-1.el7.centos.x86_64当我配置make file时,它不显示mysql驱动程序
./configure -developer-build -opensource -confirm-license -nomake examples -nomake tests -prefix /opt/qt/qtbase-5.12 Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no也在编译之后尝试手动编译驱动程序,但得到一个错误
Project ERROR: Library 'mysql' is not defined.发布于 2019-11-02 08:03:03
您应该将-sql-mysql添加到配置参数中。在重新配置之前,不要忘记通过运行以下命令来clean您的Qt目录:
git submodule foreach --recursive "git clean -dfx" && git clean -dfxhttps://stackoverflow.com/questions/58663829
复制相似问题