Dear all,
i got this mistake when compiling driver by seppemagiels instructions on windows.
what is my mistake?
this is my Qt and mysql dir:
C:\Qt5\5.5\Src\qtbase\src\plugins\sqldrivers\mysql
C:\MySQL\MySQLServer5.5
both are 32 bit installations on 64bit machine
I have no spaces in dir name
I ran prompt as administrator...
Setting up environment for Qt usage...
C:\Qt5\5.5\mingw492_32>set mysql=C:\\PROGRA~2\\MySQL\\MYSQLS~1.5
C:\Qt5\5.5\mingw492_32>cd C:\Qt5\5.5\Src\qtbase\src\plugins\sqldrivers\mysql
C:\Qt5\5.5\Src\qtbase\src\plugins\sqldrivers\mysql >qmake "INCLUDEPATH+=%mysql%\\include" "LIBS+=%mysql%\\lib\\libmysql.lib" -o Makefile mysql.pro
C:\Qt5\5.5\Src\qtbase\src\plugins\sqldrivers\mysql >mingw32-make
mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory 'C:/Qt5/5.5/Src/qtbase/src/plugins/sqldrivers/mysql'
g++ -c -pipe -fno-keep-inline-dllexport -Is:/include -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -IC:/Utils/icu32_54_1_mingw492/include -IC:/openssl/include -IC
:/utils/postgresql/pgsql/include -IC:\PROGRA~2\MySQL\MYSQLS~1.5\include -IC:\Qt5\5.5\mingw492_32\include\QtCore\5.5.1 -IC:\Qt5\5.5\mingw492_32\include\QtCore\5.5.1\QtCor e -IC:\Qt5\5.5\mingw492_32\include\QtSql\5.5.1 -IC:\Qt5\5.5\mingw492_32\include\QtSql\5.5.1\QtSql -IC:\Qt5\5.5\mingw492_32\include
-IC:\Qt5\5.5\mingw492_32\include\QtSql -IC:\Qt5\5.5\mingw492_32\include\QtCore -I.moc\release -I..\..\..\..\mkspecs\win32-g++ -o .obj\release\main.o main.cpp
In file included from main.cpp:36:0:
../../../sql/drivers/mysql/qsql_mysql_p.h:55:19: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^
compilation terminated.
Makefile.Release:476: recipe for target '.obj/release/main.o' failed
mingw32-make[1]: *** [.obj/release/main.o] Error 1
mingw32-make[1]: Leaving directory 'C:/Qt5/5.5/Src/qtbase/src/plugins/sqldrivers/mysql'
makefile:38: recipe for target 'release-all' failed
mingw32-make: *** [release-all] Error 2
C:\Qt5\5.5\Src\qtbase\src\plugins\sqldrivers\mysql >
Bookmarks