PDA

View Full Version : not able to compile sql driver mysql



sujan.dasmahapatra
23rd June 2011, 07:07
Dear Friends
I am trying to build sql driver but getting error that its not finding the path mysql.h. I am using this command to configura
/////////////////////////////////////////////////////////////////////////////////////
configure -qt-sql-mysql -plugin-sql-mysql -I C:\MySQL\MySQLServer5.5\include
mingw32-make
//////////////////////////////////////////////////////////////////////////////////
errors:
//////////////////////////////////////////////////////////////////////////////////
.\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
In file included from main.cpp:44:
../../../sql/drivers/mysql/qsql_mysql.h:52:19: error: mysql.h: No such file or d
irectory
In file included from main.cpp:44:
../../../sql/drivers/mysql/qsql_mysql.h:108: error: expected ')' before '*' toke
n
mingw32-make[4]: *** [tmp/obj/debug_shared/main.o] Error 1
mingw32-make[4]: Leaving directory `C:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory `C:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
mingw32-make[2]: *** [sub-mysql-make_default] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.7.3/src/plugins/sqldrivers'
mingw32-make[1]: *** [sub-sqldrivers-make_default] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.7.3/src/plugins'
mingw32-make: *** [sub-plugins-make_default-ordered] Error 2
//////////////////////////////////////////////////////////////////////////////////

I am specifying the path of the header of mysql.h but still its showing error that mysql.h is not found. Please giveme somesuggestions. whats wrong in this . Thanks sujan

mcosta
23rd June 2011, 11:41
Follow these instructions. It works

unix7777
14th July 2011, 20:44
it's paint in the ass to start using mysql driver on Mac OS.I have tried more than 10 times and every time something is going wrong.
Since QT4.7 all standard commands in Terminal doesn't work, i thing this is because the default installation path has changed.
How to make them work again i mean: qmake, macdeployqt etc.