Linux伊甸园论坛's Archiver

jingou 发表于 2007-9-29 19:04

Mysql driver not loaded

when I find this problem------Mysql driver not loaded
I tried the way which is in QT assistant, followed:
1.There is no mysql file in $QTDIR/src/plugins/sqldrivers/ initially, so I made one by command--mkdir myql
2.then I created a mysql.pro by command--qmake -project
3.cd $QTDIR/src/plugins/sqldrivers/mysql
4.qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
5.make

there is one problem show as follow:
make: Nothing to be done for `first'

what can I do to solve the problem?

bwb 发表于 2007-10-1 23:42

I don't used QT in MySQL .
But I want know is there driver in $QTDIR/src/plugins/sqldrivers/mysql or nothin ?
Maybe the driver is in /usr/lib/mysql .

Sunkien 发表于 2008-5-3 09:16

very wonderful!:victory:

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.