PDA

View Full Version : Building of MySQL plugin fails



janca
20th January 2006, 10:22
I'm not able to install the MySQL plugin for Qt 4.1.0, because the nmake command does not find the file "stddef.h" located in the include directory of Microsoft Visual Studio .NET 2003. I get the following error message:

c:\Qt\4.1.0\include\QtCore\../../src\corelib\global\qglobal.h(25) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or
directory

I am using the following commands

cd %QTDIR%\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=C:\Program Files\MySQL\MySQL Server 5.0\include" "LIBS+=C:\Program Files\MySQL\MySQL Server 5.0\lib\opt\LIBMYSQL.LIB" mysql.pro
nmake

Why does the nmake command fail?

zlatko
20th January 2006, 16:06
are you sure that path to needed file available in environment variables INCLUDE?

dimitri
21st January 2006, 09:23
Run <VisualStudio install dir>\VC98\Bin\VCVARS32.BAT to setup your environment correctly or use the Visual Studio shell to start the Qt build process.

See also:
Installing Qt - "windows.h" file (http://lists.trolltech.com/qt-interest/2004-06/thread00798-0.html)
Installation error (http://lists.trolltech.com/qt-interest/2004-09/thread00469-0.html)
Qt install issue on XP (http://lists.trolltech.com/qt-interest/2005-03/thread00797-0.html)
How to set environment variables for all sessions when installing Qt (http://lists.trolltech.com/qt-interest/2004-11/thread00335-0.html)
...