PDA

View Full Version : error building qt mysql driver



Capton
16th July 2013, 12:54
I'm trying to build the qt mysql driver plugin. i already have mysql(xampp) installed. The .pro file is in
C:\myTools\Qt\QtSDK\QtSources\4.8.1\src\plugins\sq ldrivers\mysql. This is a copy of my .pro file


TARGET = qsqlmysql
SOURCES = main.cpp
include(../../../sql/drivers/mysql/qsql_mysql.pri)
INCLUDEPATH += C:/myTools/xampp/mysql/include
LIBS+=C:/myTools/xampp/mysql/lib/libmysql.lib
include(../qsqldriverbase.pri)

However i still get the error

cannot find -llibmysql
error: collect2: ld returned 1 exit status
I cross-checked my library and includepath and they were intact. I need help please.

alizadeh91
16th July 2013, 13:06
http://qt-project.org/doc/qt-4.8/sql-driver.html