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:

Qt Code:
  1. 1>------ Build started: Project: QtCore, Configuration: Debug Win32 ------
  2. 1>MOC kernel\qwineventnotifier_p.h
  3. ...
  4. 1>Project : error PRJ0019: A tool returned an error code from "MOC kernel\qwineventnotifier_p.h"
  5. 1>Build log was saved at "file://d:\Qt\4.6.2\src\corelib\tmp\obj\debug_shared\BuildLog.htm"
  6. 1>QtCore - 1 error(s), 0 warning(s)
  7. 2>------ Build started: Project: QtGui, Configuration: Debug Win32 ------
  8. 2>RCC styles\qstyle.qrc
  9. ...
  10. 2>Project : error PRJ0019: A tool returned an error code from "RCC styles\qstyle.qrc"
  11. 2>Build log was saved at "file://d:\Qt\4.6.2\src\gui\tmp\obj\debug_shared\BuildLog.htm"
  12. 2>QtGui - 1 error(s), 0 warning(s)
  13. 3>------ Build started: Project: QtOpenGL, Configuration: Debug Win32 ------
  14. 3>MOC qwindowsurface_gl_p.h
  15. ...
  16. 3>Project : error PRJ0019: A tool returned an error code from "MOC qwindowsurface_gl_p.h"
  17. 3>Build log was saved at "file://d:\Qt\4.6.2\src\opengl\tmp\obj\debug_shared\BuildLog.htm"
  18. 3>QtOpenGL - 1 error(s), 0 warning(s)
  19. 4>------ Build started: Project: 2dpainting, Configuration: Debug Win32 ------
  20. 4>MOC window.h
  21. ...
  22. 4>Project : error PRJ0019: A tool returned an error code from "MOC window.h"
  23. 4>Build log was saved at "file://d:\Qt\4.6.2\examples\opengl\2dpainting\tmp\obj\debug_shared\BuildLog.htm"
  24. 4>2dpainting - 1 error(s), 0 warning(s)
  25. ========== Build: 0 succeeded, 4 failed, 5 up-to-date, 0 skipped ==========
To copy to clipboard, switch view to plain text mode 



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