Hello,

i'm trying a while ago to build qt sources (Qt 4.6.x, 4.7.0 and now 4.7.1) against wince 6.0 according to [1] without success. With or without shadow build, nmake always failed with the following error message

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

cd src\winmain\ && "C:\Program Files\Microsoft Visual Studio 8\VC\b
in\nmake.exe" -f Makefile

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

"C:\Program Files\Microsoft Visual Studio 8\VC\bin\nmake.exe" -f Ma
kefile.Release

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

cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189 -EHs-
c- -DQT_THREAD_SUPPORT -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -
D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DSTANDARDSHELL_UI_MODEL -D_WIN
32_WCE=0x600 -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D_W
IN32 -D__arm__ -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMP
AT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -D_USE_MATH_DEFI
NES -DQT_NO_DEBUG -DQT_NO_DYNAMIC_CAST -I"..\..\include" -I"tmp" -I"..\..\i
nclude\QtCore" -I"c:\Qt\4.7.1-ce60\include\qtmain" -I"tmp\rcc\release_share
d" -I"tmp" -I"..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"c:\Qt\4
.7.1\src\winmain" -I"." -I"c:\Qt\4.7.1\mkspecs\wince60TX25_SDK_v1_5_CE_6 _0-
armv4i-msvc2005" -Fotmp\obj\release_shared\ @c:\temp\nm8EAA.tmp
qtmain_win.cpp
C:\Program Files\Windows CE Tools\wce600\TX25_SDK_v1_5_CE_6_0\include\ARMV4
I\malloc.h(45) : error C2143: syntax error : missing ',' before '*'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\
ce\bin\x86_arm\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\
bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

My target device is an Arm9 device of Karo Electronics [2] relying on a Freescale processor. Environment variables are set up properly since i used the command checksdk.
checksdk -list output SDK Name: TX25_SDK_v1_5_CE_6_0 (ARMV4I). That means that the i used the right SDK name in the .\mkspecs\wince60TX25_SDK_v1_5_CE_6_0-armv4i-msvc2005\qmake.conf file. Below is the output of configure ... -saveconfig

-platform
win32-msvc2005
-xplatform
wince60TX25_SDK_v1_5_CE_6_0-armv4i-msvc2005
-nomake
examples
-nomake
demos
-no-qt3support
-no-webkit
-no-phonon
-no-phonon-backend
-no-opengl
-no-sql-sqlite
-opensource
-release

Environment variables are set properly using the checksdk script.
Does anyone have any idea how to solve this issue?

Thanks in advance,
Yann

[1] http://doc.qt.nokia.com/main-snapsho...all-wince.html
[2] http://www.karo-electronics.de/tx25.html