[SOLVED]mysql.pro build errors
-
Hi! Now it doesn't say it can't find a lib, but it obviously doesn't find it anyway. there are no "can't find" errors, but there are 107 "undefined reference to..." errors, all of them about some mysql functions. And all of them in qsql_mysql.cpp file(
-
What does "C:\MySQL_lib\lib" contain ?
-
I have removed and downloaded the most fresh MySQL. So now libs are located this way: C:\MySQL\MySQL_Server_5.5\lib and the mysql.pro looks like this:
@TARGET = qsqlmysqlSOURCES = main.cpp
OTHER_FILES += mysql.json
include(../../../sql/drivers/mysql/qsql_mysql.pri)PLUGIN_CLASS_NAME = QMYSQLDriverPlugin
include(../qsqldriverbase.pri)LIBS += -LC:/MySQL/MySQL_Server_5.5/lib
INCLUDEPATH += C:/MySQL/MySQL_Server_5.5/include
@
Errors are absolutely the same. "C:/MySQL/MySQL_Server_5.5/lib" directory contains:
debug (folder)
plugin (folder)
libmysql.dll
libmysql.lib
mysqlclient.lib -
May it be, that libmysql I have downloaded is, say, x64 or something of the sort, so that compiler just is not compatible with it?
-
The thing is, that I don't really know how to find out)
-
I suggest you have a look at this short step-by-step tutorial:
"Qt5 MYSQL":http://seppemagiels.com/blog/create-mysql-driver-qt5-windows -
Yes, thanks, I'm already reading and downloading mysql-5.6.16-win32.zip
-
Great thanks to everybody and especially to Samuel! Everything works!)
-
What have you change, that you get rid off this error?