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.
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.
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