Problem with building MySql plugin
-
I need to use MySql with my app and trying to build the plugin. I tried to build plugins using the instruction
cd $QTDIR/src/plugins/sqldrivers/mysql qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro make
after using the instruction with the qmake i got a warning saying
WARNING: /home/azravian/qt-sources/qtbase/src/plugins/sqldrivers/qsqldriverbase.pri:4: Unable to find file for inclusion qt_plugin
Project MESSAGE: Warning: unknown QT: core-private
Project MESSAGE: Warning: unknown QT: sql-privateAnd then using make give the output error as
main.cpp:34:30: fatal error: qsqldriverplugin.h: No such file or directory
#include <qsqldriverplugin.h>
^
compilation terminated.
make: *** [main.o] Error 1I have tried much but can't seem to solve it
-
Hi,
Where did you get Qt's sources ?
Are you sure you are calling the qmake matching the version of Qt you are using ? -
Use the full path when calling qmake so you ensure that you are using the correct version.
-
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
-
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)