View Full Version : missing qconfig.h during configure

7th May 2006, 01:37
I downloaded the qt-3.3.5 sources from the qt-free site on sourceforce. The reason that I am installing this to to assist the person on my project team who is handling the Windows port. When I run configure.bat it fails with the following message:

e:\qt-3.3.5\src\tools\qglobal.h(760) : fatal error C1083: Cannot open include file: 'qconfig.h': No such file or directory

I am using MSVC Express edition 2005 (final version not beta) and I have the platform SDK installed. As far as I can tell this is correctly configured but I nornmally do my developement work on Linux so this may not be the case.

It appears that the qconfig.h file should be created by the configure script but is not for some reason.

I am clearly missing something. Are there additional steps that I need to do before I run configure?

7th May 2006, 20:11
More information:

I have set QMAKESPEC to win32-msvc2005 but I see that
configure-msvc2005.bat resets this to win32-msvc.

I have also added the include and lib directories from the
MSVC Platform SDK to the INCLUDE and LIB environment

I am doing the build in a Visual Studio 2005 Command Prompt
so that is running vsvars32.bat.

Here is all of the output when I run configure-msvc2005.bat:

Building Qt/Win Free for Microsoft Visual Studio 2005
install headers for bootstrapping...
1 file(s) copied.
1 file(s) copied.
building header copy tool...
cl -c -nologo -Zm200 -EHsc -O1
-I"e:\qt-3.3.5\src\tools" -I"e:\qt-3.3.5\src\kernel"
-I"e:\qt-3.3.5\include" -I"e:\qt-3.3.5\include\private"
-I"e:\qt-3.3.5\qmake" -I"e:\qt-3.3.5\misc\link_includes"
e:\qt-3.3.5\src\tools\qglobal.h(760) : fatal error C1083:
Cannot open include file: 'qconfig.h': No such file or directory
NMAKE : fatal error U1077: '"D:\Program
Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'

An error occured. Configuration aborted.

Some relevent envoronemnt variables:

DevEnvDir=D:\Program Files\Microsoft Visual Studio 8\Common7\IDE

INCLUDE=D:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE;D:\Program Files\Microsoft Platform SDK\include

LIB=D:\Program Files\Microsoft Visual Studio
8\VC\LIB;D:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\lib;D:\Program Files\Microsoft Platform SDK\lib



VCINSTALLDIR=D:\Program Files\Microsoft Visual Studio 8\VC

VCToolkitInstallDir=D:\Program Files\Microsoft Visual C++
Toolkit 2003\

VS80COMNTOOLS=D:\Program Files\Microsoft Visual Studio

VSINSTALLDIR=D:\Program Files\Microsoft Visual Studio 8

Would additional information help?

Is there a document that covers this in enough detail so that I can make sure that I have msvc setup correctly and that I have everything needed in the envoronment setup? I don't normally work in Windows so I am not sure if I have things corrently configured. In fact I am sure I don't but I don't know were to look to find the information needed to get this working.

8th May 2006, 07:14
Please read the project information at sf.net:

"Please keep in mind that we have *nothing* to do with the official Qt/win from Trolltech..."