[Qt-interest] not able to compile sql driver mysql

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Thu Jun 23 07:07:29 CEST 2011


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

-- 
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110622/569bdeb4/attachment.html 


More information about the Qt-interest-old mailing list