Sunday, July 6th 2008, 5:00pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, February 27th 2008, 3:34pm

Installing QT with MySQL Support

Hello,

id like to get a connection to a MySQL database.

Im using the commercial version of QT in version 4.3.3 under Visual Studio 6.0.

To build my QT with SQL support i ran
configure -platform win32-msvc -qt-sql-mysql -plugin-sql-mysql
nmake

The configuring passes, but nmake not. After waiting many minutes a message called
---------------
.\../../../sql/drivers/mysql/qsql_mysql.h(32) : fatal error C1083: Cannot open i
nclude file: 'mysql.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio\VC98\bin\NMAKE
.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
----------------

displayed and the building stops.

I installed MySQL in c:\mysql with all includes and libraries.

Now i tried so many ways but no one works.

Does anyone knows this error and could help me?



Best regards,
Tom
  • Go to the top of the page

2

Saturday, March 1st 2008, 5:49pm

hi
the short way to do download mysql-odbc driver then connect to your database over odbc
  • Go to the top of the page

Rate this thread