Results 1 to 3 of 3

Thread: Problem with Mysql driver for Windows

  1. #1
    Join Date
    Oct 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Problem with Mysql driver for Windows

    Hello, I’m new to QT and I have installed QT from this installer on Windows 7 64bit:
    qt-opensource-windows-x86-1.6.0-5-online.exe

    I want to make a simple windows desktop application that connect to mysql server and dispay a table with simple data, I have read that I need mysql driver compiled for windows and I have read many tutorial but without success, I don’t see the src folder and I don’t have a QT Sdk Folder and I don't have a C:\mysql\lib\opt folder.


    I have tried this:
    http://qt-project.org/forums/viewthread/41828/
    http://ieatbinary.com/2011/07/11/how...k-for-windows/

    someone can help me to right way.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problem with Mysql driver for Windows

    You can install the Qt sources using the Qt maintenance tool.
    The Mysql development files are not part of Qt. You need to source that from the Mysql project site or your distro.

  3. #3
    Join Date
    Oct 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem with Mysql driver for Windows

    ok now I have installed the basic requirement, qt sources and mysql api after that I run this two commands:

    >qmake "INCLUDEPATH+=%mysql%\\include" "LIBS+=%mysql%\\lib\\libmysql.lib" -o Makefile mysql.pro
    >mingw32-make

    without success.

    C:\Qt\5.3\Src\qtbase\src\plugins\sqldrivers\mysql> mingw32-make
    mingw32-make -f Makefile.Release all
    mingw32-make[1]: Entering directory 'C:/Qt/5.3/Src/qtbase/src/plugins/sqldrivers
    /mysql'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
    all -Wextra -DUNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCE
    PTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I'C:/MySQL/MYSQ
    LS~1.5/include' -I'C:/Qt/5.3/mingw482_32/include/QtSql/5.3.2' -I'C:/Qt/5.3/mingw
    482_32/include/QtSql/5.3.2/QtSql' -I'C:/Qt/5.3/mingw482_32/include' -I'C:/Qt/5.3
    /mingw482_32/include/QtSql' -I'C:/Qt/5.3/mingw482_32/include/QtCore/5.3.2' -I'C:
    /Qt/5.3/mingw482_32/include/QtCore/5.3.2/QtCore' -I'C:/Qt/5.3/mingw482_32/includ
    e/QtCore' -I'.moc/release' -I'../../../../mkspecs/win32-g++' -o .obj/release/mai
    n.o main.cpp
    g++: error: CreateProcess: No such file or directory
    Makefile.Release:499: recipe for target '.obj/release/main.o' failed
    mingw32-make[1]: *** [.obj/release/main.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/Qt/5.3/Src/qtbase/src/plugins/sqldrivers/
    mysql'
    Makefile:38: recipe for target 'release-all' failed
    mingw32-make: *** [release-all] Error 2

Similar Threads

  1. Qt5 Windows Deployment issue with MySql Driver
    By davethomaspilot in forum Newbie
    Replies: 1
    Last Post: 14th January 2014, 23:36
  2. Replies: 2
    Last Post: 31st August 2010, 05:18
  3. MySql driver problem
    By stilgar in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2010, 11:26
  4. Build MySql driver in Windows Vista
    By Raccoon29 in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2010, 14:01
  5. Qt4 and mysql(driver problem)
    By knut in forum Installation and Deployment
    Replies: 20
    Last Post: 27th December 2007, 15:47

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.