Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Install Qt OpenSource in Windows + MySql » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page Install Qt OpenSource in Windows + MySql
Author
Post « Previous Thread | Next Thread »
Javi Javi is a male
Assistant


images/avatars/avatar-453.png

Registration Date: 07.05.2008
Posts: 3

Level: 3 [?]
Experience: 30
Next Level: 54

24 points of experience needed for next level

traurig Install Qt OpenSource in Windows + MySql Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I'm trying to install QT 4.4.0 Opensource in a Windows Vista with MySql support since last week. For this purpose I had read about the install proccess in a different sites and more of them, match in this method:

1º) install the qt-win-opensource-4.4.0-rc1-mingw.exe (I install in c:\qt\ )
2º) install the mysql with their libraries.(I install in c:\mysql\ )
3º) Follow this steps:

code:
1:
2:
3:
4:
 c:\> cd mysql\lib\opt
c:\mysql\lib\opt> reimp -d libmysql.lib
c:\mysql\lib\opt> dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a -k
 
(This is because the dll that comes with mysql is not compatible with qt)

code:
1:
2:
3:
4:
 c:\mysql\lib\opt> cd \qt
c:\qt\> configure -platform win32-g++ -shared -release -qt-sql-sqlite -qt-sql-mysql -l mysql -I c:\mysql\include -L c:\mysql\lib\opt
c:\qt\> mingw32-make
 

Well, when I run the mingw32-make, after a minute allways I get this error:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
 gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODETABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NODLL -I"..\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\xml" -I"." -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_static\crc32.o ..\..\3rdparty\zlib\crc32.c
In file included from ..\..\3rdparty\zlib\crc32.c:29:
..\..\3rdparty\zlib\/zutil.h:21:24: stddef.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:23:22: string.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:24:22: stdlib.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:38:23: errno.h: No such file or directory
..\..\3rdparty\zlib\crc32.c:36:24: limits.h: No such file or directory
mingw32-make[2]: *** [tmp/obj/release_static/crc32.o] Error 1
mingw32-make[2]: Leaving directory `C:/qt/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/qt/src/tools/rcc'
mingw32-make: *** [sub-rcc-make_default-ordered] Error 2
 

The stddef.h are in c:\qt\MingGW\include\ directory. I'm trying to configure with:

code:
1:
2:
 configure -platform win32-g++ -static -release -qt-sql-sqlite -qt-sql-mysql -l mysql -I c:\mysql\include -L c:\mysql\lib\opt -I C:\qt\mingw\include
 

But, the error still appears. What I'm doing wrong?
Thanks for all.

This post has been edited 10 time(s), it was last edited by Javi: 07.05.2008 15:51.

07.05.2008 14:10 Javi is offline Send an Email to Javi Homepage of Javi Search for Posts by Javi Add Javi to your Buddy List
Javi Javi is a male
Assistant


images/avatars/avatar-453.png

Registration Date: 07.05.2008
Posts: 3

Level: 3 [?]
Experience: 30
Next Level: 54

24 points of experience needed for next level

Thread Starter Thread Started by Javi
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

For making the MySQL driver I found this page (really good tutorial) but... still don't work on my computer. unhappy

http://www.jiggerjuice.net/software/qt-sql-drivers.html

quote:
ksarkies say:
The files qsqlmysql.dll, qsqlmysqld.dll, libqsqlmysql.a, libqsqlmysqld.a will appear in your c:\qt\plugins\sqldrivers directory.

In my c:\qt\plugins\sqldrivers only appear libqsqlmysqld.a file, not qsqlmysql.dll file confused
08.05.2008 13:06 Javi is offline Send an Email to Javi Homepage of Javi Search for Posts by Javi Add Javi to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » Install Qt OpenSource in Windows + MySql

views today: 4.806 | views yesterday: 12.104 | total views: 10.250.279


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich