Hi,
I am attempting to compile a first example project "MoveBlocks" and facing a problem with compilation. The compiler cannot find the "main.moc" file which is included at the end of the source file "main.cpp"
Here is the compiler output:
Running build steps for project moveblocks...
Configuration unchanged, skipping qmake step.
Starting: "D:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `D:/Qt/2010.05/qt/examples/animation/moveblocks-build-desktop'
D:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `D:/Qt/2010.05/qt/examples/animation/moveblocks-build-desktop'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\moveblocks" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o ..\moveblocks\main.cpp
mingw32-make[1]: Leaving directory `D:/Qt/2010.05/qt/examples/animation/moveblocks-build-desktop'
mingw32-make: Leaving directory `D:/Qt/2010.05/qt/examples/animation/moveblocks-build-desktop'
..\moveblocks\main.cpp:319:20: error: main.moc: No such file or directory
mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
mingw32-make: *** [debug-all] Error 2
The process "D:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project moveblocks (target: Desktop)
When executing build step 'Make'
I am using Qt Creator 2.0.1 based on Qt 4.7.0 (32 bit) on WinXP
Will appreciate all help.


 
					
					 
							
						 Unable to compile an Example
 Unable to compile an Example
		 
				
				
				
					 Reply With Quote
  Reply With Quote 
							
						 
    
    
    
    
    
    
   
    
    
       
    
    
    
    
   Originally Posted by pan
 Originally Posted by pan
					
 
			
Bookmarks