Results 1 to 5 of 5

Thread: Build mysql driver for Qt5..5.1 for windows gives error:mysql.h: no such file or dir

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    13
    Thanks
    2
    Qt products
    Qt5

    Default Build mysql driver for Qt5..5.1 for windows gives error:mysql.h: no such file or dir

    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 >
    Attached Images Attached Images
    Last edited by GoranSimunic; 8th March 2016 at 11:39.

Similar Threads

  1. (Another) Can't build MySql driver on Mac OSX
    By Gretsch in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd February 2015, 21:44
  2. Build mysql driver for Andorid arm V5
    By Abel in forum Installation and Deployment
    Replies: 0
    Last Post: 29th May 2014, 07:41
  3. Mysql Driver build Issue
    By davethomaspilot in forum Installation and Deployment
    Replies: 1
    Last Post: 4th January 2014, 18:02
  4. [QT 4.6] Error build driver mysql
    By vinny gracindo in forum Installation and Deployment
    Replies: 1
    Last Post: 26th February 2010, 01:02
  5. Build MySql driver in Windows Vista
    By Raccoon29 in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2010, 13:01

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.