Hello!

I am having a strange problem building Qt on Windows Vista for Windows Mobile 6.x professional targets.

I have the following environment:

Windows Vista 64-bit
Visual Studio 2008 SP1
Qt 4.7.3 for Windows (http://qt.nokia.com/downloads/windows-cpp-vs2008)
Qt Plug-in for Visual Studio

I follow the instructions from here: http://www.qtcentre.org/wiki/index.p..._on_Windows_CE

I configure the build:

C:\Qt\4.7.3-mobile>c:\Qt\4.7.3\configure -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008 -no-qt3support -no-webkit -no-phonon -no-phonon-backend -opensource -debug-and-release -qt-sql-sqlite

The configuration runs fine.

Then I execute setcepaths wincewm60professional-msvc2008 which also completes without any errors.

However, when I run nmake it gives me the following errors:

c:\Qt\4.7.3\src\corelib\io\qtextstream.cpp(3398) : fatal error C1083: Cannot open include file: 'qtextstream.moc': No such file or directory

c:\Qt\4.7.3\src\corelib\io\qfilesystemwatcher.cpp( 642) : fatal error C1083: Cannot open include file: 'qfilesystemwatcher.moc': No such file or directory

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\ce\bin\x86_arm\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Do you have any idea what may be going wrong and how to fix it?

Thanks. It would be really great if I can build Qt programs for Windows Mobile.