[KPhotoAlbum] Trouble building in src/Survey

Patrick Drummond erissian at sbcglobal.net
Sat Nov 25 05:16:43 CET 2006


I checked KPhotoalbum out of the repository, and I have a problem 
building the Survey directory. It complains about SurveyDialog.moc 
I'm building on slack 10.2 with QT4, with support for QT3. I tried 
hacking away at the files in question, but to no avail.

I've tried hunting down information in a few different places, so any 
ideas are appreciated.


The make output is:

Making all in Survey
make[3]: Entering directory 
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ 
-DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include -I/usr/include 
-I/usr/X11R6/include  -I./..  -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor 
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE 
-fexceptions  -DQT_NO_CAST_ASCII -DQT_CAST_NO_ASCII  -MT SurveyDialog.lo 
-MD -MP -MF ".deps/SurveyDialog.Tpo" -c -o SurveyDialog.lo 
SurveyDialog.cpp; \
then mv -f ".deps/SurveyDialog.Tpo" ".deps/SurveyDialog.Plo"; else rm -f 
".deps/SurveyDialog.Tpo"; exit 1; fi
In file included from SurveyDialog.cpp:316:
SurveyDialog.moc:12:2: error: #error "The header file 'SurveyDialog.h' 
doesn't include <QObject>."
SurveyDialog.moc:41: error: 'const QMetaObject 
Survey::SurveyDialog::staticMetaObject' is not a static member of 'class 
SurveyDialog.moc:41: error: variable 'const QMetaObject 
Survey::SurveyDialog::staticMetaObject' has initializer but incomplete type
SurveyDialog.moc:46: error: prototype for 'const QMetaObject* 
Survey::SurveyDialog::metaObject() const' does not match any in class 
SurveyDialog.h:30: error: candidate is: virtual QMetaObject* 
Survey::SurveyDialog::metaObject() const
SurveyDialog.moc:46: error: 'const QMetaObject* 
Survey::SurveyDialog::metaObject() const' cannot be overloaded
SurveyDialog.h:30: error: with 'virtual QMetaObject* 
Survey::SurveyDialog::metaObject() const'
SurveyDialog.moc: In member function 'const QMetaObject* 
Survey::SurveyDialog::metaObject() const':
SurveyDialog.moc:48: error: cannot convert 'QMetaObject* (*)()' to 
'const QMetaObject*' in return
SurveyDialog.moc: At global scope:
SurveyDialog.moc:51: error: no 'void* 
Survey::SurveyDialog::qt_metacast(const char*)' member function declared 
in class 'Survey::SurveyDialog'
SurveyDialog.moc: In member function 'void* 
Survey::SurveyDialog::qt_metacast(const char*)':
SurveyDialog.moc:56: error: 'qt_metacast' is not a member of 'QDialog'
SurveyDialog.moc: At global scope:
SurveyDialog.moc:59: error: 'int Survey::SurveyDialog::qt_metacall' is 
not a static member of 'class Survey::SurveyDialog'
SurveyDialog.moc:59: error: incomplete type 'QMetaObject' used in nested 
name specifier
SurveyDialog.moc:59: error: expected primary-expression before 'int'
SurveyDialog.moc:59: error: expected primary-expression before 'void'
SurveyDialog.moc:59: error: initializer expression list treated as 
compound expression
SurveyDialog.moc:60: error: expected ',' or ';' before '{' token
make[3]: *** [SurveyDialog.lo] Error 1
make[3]: Leaving directory 
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/patrick/kpa/KPhotoAlbum-src/kphotoalbum'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/patrick/kpa/KPhotoAlbum-src'
make: *** [all] Error 2

More information about the KPhotoAlbum mailing list