Some makefile paths seem to mix slashes and backslashes and cause compilation errors.
I can recreate the problem like this:
1) start new Mobile Qt Application project
2) Select Qt simulation target (MinGW 4.4)
3) build
Error in compilation:
moc ../MobQtTest/mainwindow.h
/usr/bin/sh: C:appsNokiaQtSDKSimulatorQtmingwbin/moc.exe: No such file or directory
Line in Makefile.Debug:
debug/moc_mainwindow.cpp: ../MobQtTest/mainwindow.h
@echo moc ../MobQtTest/mainwindow.h && C:\apps\NokiaQtSDK\Simulator\Qt\mingw\bin/moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 ../MobQtTest/mainwindow.h -o debug/moc_mainwindow.cpp
Problem can be manually fixed by changing the backslashes to slashes:
debug/moc_mainwindow.cpp: ../MobQtTest/mainwindow.h
@echo moc ../MobQtTest/mainwindow.h && C:/apps/NokiaQtSDK/Simulator/Qt/mingw/bin/moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 ../MobQtTest/mainwindow.h -o debug/moc_mainwindow.cpp
There are similar path problems for some libraries as well.
Cheers,
Ilari



