Qt Ubuntu下添加 Mysql 驱动

在Ubuntu 16.04上为Qt 5.14构建Mysql驱动的步骤,包括安装依赖项libssl-dev, mysql-client, libmysqlclient-dev, libmysql++dev, libmysqlcppconn-dev,以及在qtbase的sqldrivers目录下使用qmake和make编译MySQL驱动。" 115836178,7290734,Python序列类型深入:数组、内存视图、NumPy与双向队列deque解析,"['Python', '数据结构', 'NumPy', '队列', '科学计算']
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值