PDA

View Full Version : MySql problem



MrShahi
23rd May 2008, 13:48
Hello everyone ......
I installed Qt staticaly . after that I wana build plugin of MySql for further use.
for that I m use suggestion of following link
http://doc.trolltech.com/4.3/sql-driver.html#qmysql-for-mysql-4-and-higher
but whenevr I give the command.
/root/Desktop/qt-x11-opensource-src-4.3.1/bin/qmake -o Makefile "INCLUDEPATH+=/usr/include/mysql/include" "LIBS+=-L/usr/lib/mysql-standard-5.0.27-linux-i686 -lmysqlclient_r" mysql.pro
and then "make"
it 's giving error
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1
Please any one tell me how build mysql plugin in Qt ........
thanx in advance:(

jacek
25th May 2008, 00:18
How did you install MySQL?