开发者

Simplest build of QMYSQL3

开发者 https://www.devze.com 2022-12-17 00:48 出处:网络
What is simplest way to build the QMYSQL3 driver with the full 4.6 SDK (2009.05) installed? Does the resulting DLL require a 开发者_开发知识库manual copy in order for the SDK to use it?If you have not

What is simplest way to build the QMYSQL3 driver with the full 4.6 SDK (2009.05) installed? Does the resulting DLL require a 开发者_开发知识库manual copy in order for the SDK to use it?


If you have not installed mysql driver at

$QTDIR/plugins/src/sqldriver/mysql

than install it with

qmake -o Makefile INCLUDEPATH+="mysql header files path" LIBS+="mysql library path -L lmysqlclient" mysql.pro
make

If you can't able to load the driver, than reconfigure QT with

./configure -qt-sql mysql 

and specify header file path and library path with -I and -L option.

0

精彩评论

暂无评论...
验证码 换一张
取 消