ubuntu qt mysql 源码编译

安装mysql
sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev

sudo apt-get install libmysqlcppconn-dev
sudo apt-get install qtbase5-private-dev

qmake “INCLUDEPATH+=/usr/include/mysql” “LIBS+=-L/usr/lib/x86_64-linux-gnu/ -lmysqlclient” mysql.pro
make
sudo make install

你可能感兴趣的:(mysql)