Sign in to follow this  
Aiea

QT and vs2005

Recommended Posts

Hi all, I'm trying to build qt with a vs2005 and I'm having trouble with it. I just reformatted my computer, prior to that I was able to compile qt with no problem. But now I'm having an error where qt cannot find windows.h when I had included the SDK path in vs. I also tried including the SDK in the path variable but that did not work either. Can anyone help me with this problem? Mahalo, Aiea

Share this post


Link to post
Share on other sites

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

PATH=
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
C:\Program Files\Microsoft Visual Studio 8\VC\BIN
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\TortoiseSVN\bin
C:\QT\4.4.3\bin
You are licensed to use this software under the terms of the GNU GPL version 2 o
r 3.
See C:/QT/4.4.3/LICENSE.GPL2
or C:/QT/4.4.3/LICENSE.GPL3

Configuration:
dist-config
large-config
medium-config
minimal-config
small-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
png
accessibility
qt3support
opengl
ipv6
xmlpatterns
webkit
svg
minimal-config
small-config
medium-config
large-config
full-config

QMAKESPEC...................win32-msvc2005 (detected)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
Direct3D support............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............no
WebKit support..............yes
Qt3 compatibility...........yes

Third Party Libraries:
ZLIB support............qt
GIF support.............plugin
TIFF support............plugin
JPEG support............plugin
PNG support.............qt
MNG support.............plugin

styles:
Windows.................yes
Windows XP..............no
Windows Vista...........no
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no

Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no

Sources are in..............C:\QT\4.4.3
Build is done in............C:\QT\4.4.3
Install prefix..............C:\QT\4.4.3
Headers installed to........C:\QT\4.4.3\include
Libraries installed to......C:\QT\4.4.3\lib
Plugins installed to........C:\QT\4.4.3\plugins
Binaries installed to.......C:\QT\4.4.3\bin
Docs installed to...........C:\QT\4.4.3\doc
Data installed to...........C:\QT\4.4.3
Translations installed to...C:\QT\4.4.3\translations
Examples installed to.......C:\QT\4.4.3\examples
Demos installed to..........C:\QT\4.4.3\demos

Creating qmake...

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\uni
x -Igenerators\win32 -Igenerators\mac -IC:\QT\4.4.3\include -IC:\QT\4.4.3\inclu
de\QtCore -IC:\QT\4.4.3\include -IC:\QT\4.4.3\include\QtCore -IC:\QT\4.4.3\src
\corelib\global -IC:\QT\4.4.3\include\QtScript -IC:\QT\4.4.3\mkspecs\win32-msv
c2005 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -
DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_
NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE
-DQT_BOOTSTRAPPED /Zc:wchar_t- -DQMAKE_OPENSOURCE_EDITION project.cpp
project.cpp
project.cpp(56) : fatal error C1083: Cannot open include file: 'Windows.h': No s
uch file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

del qbitarray.obj
Could Not Find C:\QT\4.4.3\qmake\qbitarray.obj
del qbuffer.obj
Could Not Find C:\QT\4.4.3\qmake\qbuffer.obj
del qcryptographichash.obj
Could Not Find C:\QT\4.4.3\qmake\qcryptographichash.obj
del qlinkedlist.obj
Could Not Find C:\QT\4.4.3\qmake\qlinkedlist.obj
del qfsfileengine.obj
Could Not Find C:\QT\4.4.3\qmake\qfsfileengine.obj
del qfsfileengine_iterator.obj
Could Not Find C:\QT\4.4.3\qmake\qfsfileengine_iterator.obj
del qbytearray.obj
Could Not Find C:\QT\4.4.3\qmake\qbytearray.obj
del qvsnprintf.obj
Could Not Find C:\QT\4.4.3\qmake\qvsnprintf.obj
del qbytearraymatcher.obj
Could Not Find C:\QT\4.4.3\qmake\qbytearraymatcher.obj
del qdatetime.obj
Could Not Find C:\QT\4.4.3\qmake\qdatetime.obj
del qdir.obj
Could Not Find C:\QT\4.4.3\qmake\qdir.obj
del qdiriterator.obj
Could Not Find C:\QT\4.4.3\qmake\qdiriterator.obj
del qfile.obj
Could Not Find C:\QT\4.4.3\qmake\qfile.obj
del qtemporaryfile.obj
Could Not Find C:\QT\4.4.3\qmake\qtemporaryfile.obj
del qabstractfileengine.obj
Could Not Find C:\QT\4.4.3\qmake\qabstractfileengine.obj
del qfsfileengine_win.obj
Could Not Find C:\QT\4.4.3\qmake\qfsfileengine_win.obj
del qfsfileengine_iterator_win.obj
Could Not Find C:\QT\4.4.3\qmake\qfsfileengine_iterator_win.obj
del qfileinfo.obj
Could Not Find C:\QT\4.4.3\qmake\qfileinfo.obj
del qglobal.obj
Could Not Find C:\QT\4.4.3\qmake\qglobal.obj
del qhash.obj
Could Not Find C:\QT\4.4.3\qmake\qhash.obj
del qiodevice.obj
Could Not Find C:\QT\4.4.3\qmake\qiodevice.obj
del qlistdata.obj
Could Not Find C:\QT\4.4.3\qmake\qlistdata.obj
del qlocale.obj
Could Not Find C:\QT\4.4.3\qmake\qlocale.obj
del qmalloc.obj
Could Not Find C:\QT\4.4.3\qmake\qmalloc.obj
del qmap.obj
Could Not Find C:\QT\4.4.3\qmake\qmap.obj
del qregexp.obj
Could Not Find C:\QT\4.4.3\qmake\qregexp.obj
del qstring.obj
Could Not Find C:\QT\4.4.3\qmake\qstring.obj
del qstringlist.obj
Could Not Find C:\QT\4.4.3\qmake\qstringlist.obj
del qtextstream.obj
Could Not Find C:\QT\4.4.3\qmake\qtextstream.obj
del qdatastream.obj
Could Not Find C:\QT\4.4.3\qmake\qdatastream.obj
del quuid.obj
Could Not Find C:\QT\4.4.3\qmake\quuid.obj
del qvector.obj
Could Not Find C:\QT\4.4.3\qmake\qvector.obj
del qsettings.obj
Could Not Find C:\QT\4.4.3\qmake\qsettings.obj
del qlibraryinfo.obj
Could Not Find C:\QT\4.4.3\qmake\qlibraryinfo.obj
del qvariant.obj
Could Not Find C:\QT\4.4.3\qmake\qvariant.obj
del qurl.obj
Could Not Find C:\QT\4.4.3\qmake\qurl.obj
del qsettings_win.obj
Could Not Find C:\QT\4.4.3\qmake\qsettings_win.obj
del qmetatype.obj
Could Not Find C:\QT\4.4.3\qmake\qmetatype.obj
del project.obj
Could Not Find C:\QT\4.4.3\qmake\project.obj
del main.obj
Could Not Find C:\QT\4.4.3\qmake\main.obj
del makefile.obj
Could Not Find C:\QT\4.4.3\qmake\makefile.obj
del unixmake.obj
Could Not Find C:\QT\4.4.3\qmake\unixmake.obj
del unixmake2.obj
Could Not Find C:\QT\4.4.3\qmake\unixmake2.obj
del mingw_make.obj
Could Not Find C:\QT\4.4.3\qmake\mingw_make.obj
del option.obj
Could Not Find C:\QT\4.4.3\qmake\option.obj
del winmakefile.obj
Could Not Find C:\QT\4.4.3\qmake\winmakefile.obj
del projectgenerator.obj
Could Not Find C:\QT\4.4.3\qmake\projectgenerator.obj
del property.obj
Could Not Find C:\QT\4.4.3\qmake\property.obj
del meta.obj
Could Not Find C:\QT\4.4.3\qmake\meta.obj
del makefiledeps.obj
Could Not Find C:\QT\4.4.3\qmake\makefiledeps.obj
del metamakefile.obj
Could Not Find C:\QT\4.4.3\qmake\metamakefile.obj
del xmloutput.obj
Could Not Find C:\QT\4.4.3\qmake\xmloutput.obj
del borland_bmake.obj
Could Not Find C:\QT\4.4.3\qmake\borland_bmake.obj
del msvc_nmake.obj
Could Not Find C:\QT\4.4.3\qmake\msvc_nmake.obj
del msvc_dsp.obj
Could Not Find C:\QT\4.4.3\qmake\msvc_dsp.obj
del msvc_vcproj.obj
Could Not Find C:\QT\4.4.3\qmake\msvc_vcproj.obj
del msvc_objectmodel.obj
Could Not Find C:\QT\4.4.3\qmake\msvc_objectmodel.obj
del pbuilder_pbx.obj
Could Not Find C:\QT\4.4.3\qmake\pbuilder_pbx.obj
del qnumeric.obj -del qscriptasm.obj -del qscriptast.obj -del qscript
astvisitor.obj -del qscriptcompiler.obj -del qscriptecmaarray.obj -del qscrip
tecmaboolean.obj -del qscriptecmacore.obj -del qscriptecmadate.obj -del qscri
ptecmafunction.obj -del qscriptecmaglobal.obj -del qscriptecmamath.obj -del q
scriptecmanumber.obj -del qscriptecmaobject.obj -del qscriptecmaregexp.obj -d
el qscriptecmastring.obj -del qscriptecmaerror.obj -del qscriptcontext_p.obj
-del qscriptengine.obj -del qscriptengine_p.obj -del qscriptengineagent.obj -
del qscriptextenumeration.obj -del qscriptextvariant.obj -del qscriptcontext.o
bj -del qscriptcontextinfo.obj -del qscriptfunction.obj -del qscriptgrammar.o
bj -del qscriptlexer.obj -del qscriptclassdata.obj -del qscriptparser.obj -d
el qscriptprettypretty.obj -del qscriptsyntaxchecker.obj -del qscriptclass.obj
-del qscriptclasspropertyiterator.obj -del qscriptstring.obj -del qscriptval
ue.obj -del qscriptvalueimpl.obj -del qscriptvalueiterator.obj -del qscriptva
lueiteratorimpl.obj
Could Not Find C:\QT\4.4.3\qmake\qnumeric.obj
del vc60.pdb
Could Not Find C:\QT\4.4.3\qmake\vc60.pdb
del vc70.pdb
Could Not Find C:\QT\4.4.3\qmake\vc70.pdb
del qmake.pdb
Could Not Find C:\QT\4.4.3\qmake\qmake.pdb
del qmake.ilk
Could Not Find C:\QT\4.4.3\qmake\qmake.ilk
del qmake.tds
Could Not Find C:\QT\4.4.3\qmake\qmake.tds

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.

cl -c -Foproject.obj -W3 -nologo -O2 -I. -Igenerators -Igenerators\uni
x -Igenerators\win32 -Igenerators\mac -IC:\QT\4.4.3\include -IC:\QT\4.4.3\inclu
de\QtCore -IC:\QT\4.4.3\include -IC:\QT\4.4.3\include\QtCore -IC:\QT\4.4.3\src
\corelib\global -IC:\QT\4.4.3\include\QtScript -IC:\QT\4.4.3\mkspecs\win32-msv
c2005 -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -
DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_
NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE
-DQT_BOOTSTRAPPED /Zc:wchar_t- -DQMAKE_OPENSOURCE_EDITION project.cpp
project.cpp
project.cpp(56) : fatal error C1083: Cannot open include file: 'Windows.h': No s
uch file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
Building qmake failed, return code 2


C:\QT\4.4.3>

Sorry for such a lengthy post

Share this post


Link to post
Share on other sites
Did you run qmake within your Visual Studio 2005 Command Prompt?
(Start -> Programs -> Visual Studio 2005 -> Tools -> Visual Studio 2005 Command Prompt)

I think I had a similar error once, it was because I used the normal windows command prompt and not the one which is bound to the VS.

Share this post


Link to post
Share on other sites
Yea I did run it through vs command prompt.

I have a feeling I'm missing something because prior to me restoring my computer it compiled fine, even when my machine was buggy but had a lot more stuffs on it.

Share this post


Link to post
Share on other sites
You may miss the platform sdk; you may need to install it or only to add it to the include/lib paths.

C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib

Share this post


Link to post
Share on other sites
Quote:
Original post by hydroo
The opensource-qt-version is not supposed to be compiled with vs.


Beginning with QT4.3 you are free to use any compiler you want. VC7, VC8 and VC9 are supported. The OP's error messages indeed sound like he just forgot to install the Windows Platform SDK. In VC2005 Express this was neccessary as a separate installation, with VC2008 Express it is already included.

I suggest you use VC2008 Express instead. It has other advantages, too.

Bye, Thomas

Share this post


Link to post
Share on other sites
Yea I already had psdk installed and PATHed, but I guess QT needs environment variables with INCLUDE and LIB as names =
Thanks a lot guys, I got it compiled fine now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this