[KPhotoAlbum] Trouble building in src/Survey

Baptiste MATHUS ml at batmat.net
Sat Nov 25 13:27:11 GMT 2006


I just tested it and could compile after cleaning everything. I guess
you've got something different in your conf. Here's part of mine :

 gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)

autoconf 2.60a (I'm not even sure it's used :p)

 moc -v
Qt Meta Object Compiler version 26 (Qt 3.3.7)

my 2 cents :-)

2006/11/25, Patrick Drummond <erissian at sbcglobal.net>:
> Hi,
>
> I checked KPhotoalbum out of the repository, and I have a problem
> building the Survey directory. It complains about SurveyDialog.moc
> specifically.
> 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.
>
> Thanks,
> Patrick
>
> The make output is:
>
> Making all in Survey
> make[3]: Entering directory
> `/home/patrick/kpa/KPhotoAlbum-src/kphotoalbum/Survey'
> 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
> -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
> -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
> Survey::SurveyDialog'
> 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
> 'Survey::SurveyDialog'
> 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
> `/home/patrick/kpa/KPhotoAlbum-src/kphotoalbum/Survey'
> 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
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at kdab.net
> http://mail.kdab.net/mailman/listinfo/kphotoalbum
>


-- 
Baptiste <Batmat> Mathus
BMathus at Batmat point net - http://batmat.net
---------
Si chacun de nous a une idée et que nous les partageons, nous
repartirons tous les deux avec deux idées... C'est ça le Libre.



More information about the Kphotoalbum mailing list