开发者

Simplest build of QMYSQL3

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜