Build failed with Qt 4.8.0 + Visual C++ 2010

Submitted by Roy Chen on 2012-04-06

Here is my steps to build saladin:

1. open "Visual Studio Command Prompt (2010)"
2. set PATH=C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin;%PATH%
3. set QTDIR=C:\QtSDK
4. configure.bat
5. nmake

After a while, I got this error message:
....
d:\opensource\saladin_gitsvn\src\folderitemview.h : warning C4819: The file cont
ains a character that cannot be represented in the current code page (950). Save
the file in Unicode format to prevent data loss
c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\include\QtGui\private/qtreeview_p.h(1) : fata
l error C1083: Cannot open include file: '../../../src/gui/itemviews/qtreeview_p
.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

It seems that the problem is due to qtreeview_p.h not found. But I think this file should be in the Qt SDK already. Do you have any idea?

By the way, thanks for the great work! ;-)

Strange... it looks like something is wrong with your Qt installation. I have this file and everything works fine.

Regards,
Michał