I am trying to create Qt with a 64-bit Microsoft compiler. I downloaded qt-everywhere-opensource-src-4.8.0.tar.gz from the Qt download page and extracted it in D:\Qt . After running x64 Cross Tools Command Prompt, I ran the following commands:
set QTDIR = D: \ Qt
set PATH =% PATH%;% QTDIR% \ bin
configure.exe -debug-and-release -opensource -qt-zlib -qt-libpng -qt-libmng
-qt-libtiff -qt-libjpeg -qt-style-windowsxp -qt-style-windowsvista
-platform win32-msvc2010
The process went quite smoothly for several minutes, but suddenly stopped with the following error:
...
qurl.cpp
qsettings_win.cpp
NMAKE: fatal error U1077: '"C: \ Program Files \ Microsoft Visual Studio 11.0 \ VC \ BI
N \ x86_amd64 \ cl.EXE "': return code' 0x2 '
Stop
Building qmake failed, return code 2
I do not know what causes this error or what to do with it - the error message is much less than useful. This is what my system looks like:
- Windows 8 Consumer Preview 32-bit
- Visual Studio 11.0.50.214.1 Beta Express for Windows 8
Edit: if I cd into the qmake directory and run nmake , we find the actual error:
qfilesystemengine_win.cpp
qfsfileengine_win.cpp
D: \ Qt \ src \ corelib \ io \ qfsfileengine_win.cpp (64): fatal error C1083: Cannot open
include file: 'shlobj.h': No such file or directory
D: \ Qt \ src \ corelib \ io \ qfilesystemengine_win.cpp (66): fatal error C1083: Cannot o
pen include file: 'shlobj.h': No such file or directory
NMAKE: fatal error U1077: '"C: \ Program Files \ Microsoft Visual Studio 11.0 \ VC \ BI
N \ x86_amd64 \ cl.EXE "': return code' 0x2 '
Stop
Why is shlobj.h missing?
source share