#sudo apt-get install mysql-server libmysqlclient15-dev
#su -
#cd $QTDIR/src/plugins/sqldrivers/mysql
#qmake "INCLUDEPATH+=/usr/include/mysql"
"LIBS+=-L/usr/lib/mysql -lmysqlclient_r" mysql.pro
#make
#make install
then,"libqsqlmysql.so" at $QTDIR/plugins/sqldrivers/
參考資料:QT4 Doc-SQL Database Driver
沒有留言:
張貼留言