tags:

views:

488

answers:

1

Hello all,

I am using QT 4 (the latest GPL version released by Nokia)

I download QT Property Browser from doc.trolltech.com/solutions/4/qtpropertybrowser/index.html

I am using VC++ 2008, with QT Visual Studio Add-In Installed.

I try to build simple project, under qtpropertybrowser solution.

Here is the error message I obtained :

1>------ Rebuild All started: Project: simple, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'simple', configuration 'Release|Win32'
1>Moc'ing qtpropertybrowserutils_p.h...
1>RCC ..\..\src\qtpropertybrowser.qrc
1>MOC ..\..\src\qtvariantproperty.h
1>MOC ..\..\src\qtpropertybrowser.h
1>MOC ..\..\src\qtgroupboxpropertybrowser.h
1>MOC ..\..\src\qtbuttonpropertybrowser.h
1>MOC ..\..\src\qttreepropertybrowser.h
1>MOC ..\..\src\qtpropertymanager.h
1>MOC ..\..\src\qteditorfactory.h
1>Compiling...
1>qrc_qtpropertybrowser.cpp
1>qtvariantproperty.cpp
1>qttreepropertybrowser.cpp
1>..\..\src\qttreepropertybrowser.cpp(1091) : fatal error C1083: Cannot open include file: 'qttreepropertybrowser.moc': No such file or directory
1>qtpropertymanager.cpp
1>..\..\src\qtpropertymanager.cpp(6470) : fatal error C1083: Cannot open include file: 'qtpropertymanager.moc': No such file or directory
1>qtpropertybrowserutils.cpp
1>qtpropertybrowser.cpp
1>qtgroupboxpropertybrowser.cpp
1>qteditorfactory.cpp
1>..\..\src\qteditorfactory.cpp(2592) : fatal error C1083: Cannot open include file: 'qteditorfactory.moc': No such file or directory
1>qtbuttonpropertybrowser.cpp
1>main.cpp
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\yan-cheng.cheok\Desktop\qtpropertybrowser-2.5-opensource\qtpropertybrowser-2.5-opensource\examples\simple\release\BuildLog.htm"
1>simple - 3 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any suggestion to pass the compilation will be very much appreciated.

+1  A: 

OK. Finally I figure out the workaround, I need to manually run the following command before clicking on the build all button.

moc qttreepropertybrowser > qttreepropertybrowser.moc
moc qtpropertymanager > qtpropertymanager.moc
moc qteditorfactory > qteditorfactory.moc

Not sure why. QT people should include these command in their build file :(

Yan Cheng CHEOK