PDA

View Full Version : Qt 4.6.2 examples -- generated files missing



jiapei100
1st April 2010, 07:03
Hi, all:

I'm using Visual Studio 2008 + Qt 4.6.2 + Qt Visual Studio Add-in 1.1.4 and
trying to build all projects in D:\Qt\4.6.2\examples


For example, when I tried to build "2dpainting", I obtained the following error message:


1>------ Build started: Project: QtCore, Configuration: Debug Win32 ------
1>MOC kernel\qwineventnotifier_p.h
...
1>Project : error PRJ0019: A tool returned an error code from "MOC kernel\qwineventnotifier_p.h"
1>Build log was saved at "file://d:\Qt\4.6.2\src\corelib\tmp\obj\debug_shared\Build Log.htm"
1>QtCore - 1 error(s), 0 warning(s)
2>------ Build started: Project: QtGui, Configuration: Debug Win32 ------
2>RCC styles\qstyle.qrc
...
2>Project : error PRJ0019: A tool returned an error code from "RCC styles\qstyle.qrc"
2>Build log was saved at "file://d:\Qt\4.6.2\src\gui\tmp\obj\debug_shared\BuildLog. htm"
2>QtGui - 1 error(s), 0 warning(s)
3>------ Build started: Project: QtOpenGL, Configuration: Debug Win32 ------
3>MOC qwindowsurface_gl_p.h
...
3>Project : error PRJ0019: A tool returned an error code from "MOC qwindowsurface_gl_p.h"
3>Build log was saved at "file://d:\Qt\4.6.2\src\opengl\tmp\obj\debug_shared\BuildL og.htm"
3>QtOpenGL - 1 error(s), 0 warning(s)
4>------ Build started: Project: 2dpainting, Configuration: Debug Win32 ------
4>MOC window.h
...
4>Project : error PRJ0019: A tool returned an error code from "MOC window.h"
4>Build log was saved at "file://d:\Qt\4.6.2\examples\opengl\2dpainting\tmp\obj\deb ug_shared\BuildLog.htm"
4>2dpainting - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 4 failed, 5 up-to-date, 0 skipped ==========



It seems that all "moc_*" files are missing under the folders named "Generated Files" in "Solution Explorer" view.

Is there anybody who had successfully built Qt 4.6.2 examples?

Best Regards
JIA Pei