Results 1 to 3 of 3

Thread: not able to compile sql driver mysql

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default not able to compile sql driver mysql

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: not able to compile sql driver mysql

    Follow these instructions. It works
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Mar 2009
    Posts
    104
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: not able to compile sql driver mysql

    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.

Similar Threads

  1. MySQL driver on Mac OS X
    By Vit_H in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2011, 21:26
  2. source code for odbc driver or MySql driver in arm-embedded-linux
    By sattu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th January 2011, 10:11
  3. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 15:19
  4. [qt 4.6] mysql driver
    By vinny gracindo in forum Newbie
    Replies: 0
    Last Post: 25th February 2010, 22:28
  5. cant compile mysql driver
    By IsoArska in forum Newbie
    Replies: 18
    Last Post: 30th November 2009, 22:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.