linux 下qt mysql 驱动编译过程
1.安装mysql开发包:
ubuntu:apt-get install libmysqld-devel
centos:yum install mysql-devel
2.编译QT的mysql驱动,找到QT的mysql驱动源码
3.执行make
4.make install
1.安装mysql开发包:
ubuntu:apt-get install libmysqld-devel
centos:yum install mysql-devel
2.编译QT的mysql驱动,找到QT的mysql驱动源码
qmake -o Makefile "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/usr/lib/i386-linux-gnu -lmysqlclient_r" mysql.pro
3.执行make
4.make install