[Digikam-devel] digikam Image rating
Mikolaj Machowski
mikmach at wp.pl
Wed Aug 17 00:12:03 BST 2005
Dnia wtorek 16 sierpień 2005 16:52, Owen Hirst napisał:
> --- Owen Hirst <n8rider at sbcglobal.net> wrote:
> > Attached third version of patch:
>
> Forgot to attach the patch :)
>
make distclean
svn revert -R .
svn cleanup
patch -p0 < patchfile (clean patch)
And...
Compilation fails with:
/usr/lib/qt3//bin/moc ./ratingwidget.h -o ratingwidget.moc
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../kst/kst -I../../digikam/sqlite
-I../../digikam/libs/histogram -I../../digikam/libs/filters
-I../../digikam/libs/levels -I../../digikam/libs/curves
-I../../digikam/libs/themeengine -I../../digikam/libs/widgets
-I../../digikam/libs/thumbbar -I../../digikam/libs/jpegutils
-I../../digikam/utilities/cameragui -I../../digikam/utilities/imageeditor
-I../../digikam/utilities/splashscreen -I../../digikam/utilities/setup
-I../../digikam/ -I/usr/local/kde/include -I/usr/local/kde/include
-I/usr/lib/qt3//include -I/usr/X11R6/include -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 -DQT_CLEAN_NAMESPACE -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -MT ratingwidget.lo -MD -MP -MF
".deps/ratingwidget.Tpo" -c -o ratingwidget.lo ratingwidget.cpp; \
then mv -f ".deps/ratingwidget.Tpo" ".deps/ratingwidget.Plo"; else rm -f
".deps/ratingwidget.Tpo"; exit 1; fi
In file included from ratingwidget.cpp:127:
ratingwidget.moc:114: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:118: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:118: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:119: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:142: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:167: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:175: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:180: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:185: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:196: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:200: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.moc:205: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:209: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:209: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:210: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:233: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:258: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:266: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:271: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:276: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:287: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:291: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.cpp:158: error: redefinition of
`RatingWidget::RatingWidget(QWidget*)'
ratingwidget.cpp:31: error: `RatingWidget::RatingWidget(QWidget*)'
previously defined here
ratingwidget.cpp:189: error: redefinition of
`RatingWidget::~RatingWidget()'
ratingwidget.cpp:62: error: `virtual RatingWidget::~RatingWidget()'
previously defined here
ratingwidget.cpp:194: error: redefinition of `void
RatingWidget::setRating(int)'
ratingwidget.cpp:67: error: `void RatingWidget::setRating(int)' previously
defined here
ratingwidget.cpp:200: error: redefinition of `int RatingWidget::rating()
const'
ratingwidget.cpp:73: error: `int RatingWidget::rating() const' previously
defined here
ratingwidget.cpp:205: error: redefinition of `void
RatingWidget::mouseMoveEvent(QMouseEvent*)'
ratingwidget.cpp:78: error: `virtual void
RatingWidget::mouseMoveEvent(QMouseEvent*)' previously defined here
ratingwidget.cpp:217: error: redefinition of `void
RatingWidget::mousePressEvent(QMouseEvent*)'
ratingwidget.cpp:90: error: `virtual void
RatingWidget::mousePressEvent(QMouseEvent*)' previously defined here
ratingwidget.cpp:235: error: redefinition of `void
RatingWidget::paintEvent(QPaintEvent*)'
ratingwidget.cpp:108: error: `virtual void
RatingWidget::paintEvent(QPaintEvent*)' previously defined here
In file included from ratingwidget.cpp:254:
ratingwidget.moc:23: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:27: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:27: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:28: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:51: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:76: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:84: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:89: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:94: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:105: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:109: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.moc:114: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:118: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:118: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:119: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:142: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:167: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:175: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:180: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:185: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:196: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:200: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.moc:205: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:209: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:209: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:210: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:233: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:258: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:266: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:271: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:276: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:287: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:291: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.cpp:285: error: redefinition of
`RatingWidget::RatingWidget(QWidget*)'
ratingwidget.cpp:31: error: `RatingWidget::RatingWidget(QWidget*)'
previously defined here
ratingwidget.cpp:316: error: redefinition of
`RatingWidget::~RatingWidget()'
ratingwidget.cpp:62: error: `virtual RatingWidget::~RatingWidget()'
previously defined here
ratingwidget.cpp:321: error: redefinition of `void
RatingWidget::setRating(int)'
ratingwidget.cpp:67: error: `void RatingWidget::setRating(int)' previously
defined here
ratingwidget.cpp:327: error: redefinition of `int RatingWidget::rating()
const'
ratingwidget.cpp:73: error: `int RatingWidget::rating() const' previously
defined here
ratingwidget.cpp:332: error: redefinition of `void
RatingWidget::mouseMoveEvent(QMouseEvent*)'
ratingwidget.cpp:78: error: `virtual void
RatingWidget::mouseMoveEvent(QMouseEvent*)' previously defined here
ratingwidget.cpp:344: error: redefinition of `void
RatingWidget::mousePressEvent(QMouseEvent*)'
ratingwidget.cpp:90: error: `virtual void
RatingWidget::mousePressEvent(QMouseEvent*)' previously defined here
ratingwidget.cpp:362: error: redefinition of `void
RatingWidget::paintEvent(QPaintEvent*)'
ratingwidget.cpp:108: error: `virtual void
RatingWidget::paintEvent(QPaintEvent*)' previously defined here
In file included from ratingwidget.cpp:381:
ratingwidget.moc:23: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:27: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:27: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:28: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:51: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:76: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:84: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:89: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:94: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:105: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:109: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.moc:114: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:118: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:118: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:119: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:142: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:167: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:175: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:180: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:185: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:196: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:200: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
ratingwidget.moc:205: error: redefinition of `const char*
RatingWidget::className() const'
ratingwidget.moc:23: error: `virtual const char* RatingWidget::className()
const' previously defined here
ratingwidget.moc:209: error: duplicate initialization of
RatingWidget::metaObj
ratingwidget.moc:209: error: redefinition of
`QMetaObject*RatingWidget::metaObj'
ratingwidget.moc:27: error: `QMetaObject*RatingWidget::metaObj' previously
defined here
ratingwidget.moc:210: error: redefinition of `QMetaObjectCleanUp
cleanUp_RatingWidget'
ratingwidget.moc:28: error: `QMetaObjectCleanUp cleanUp_RatingWidget'
previously declared here
ratingwidget.moc:233: error: redefinition of `static QMetaObject*
RatingWidget::staticMetaObject()'
ratingwidget.moc:51: error: `static QMetaObject*
RatingWidget::staticMetaObject()' previously defined here
ratingwidget.moc:258: error: redefinition of `void*
RatingWidget::qt_cast(const char*)'
ratingwidget.moc:76: error: `virtual void* RatingWidget::qt_cast(const
char*)' previously defined here
ratingwidget.moc:266: error: redefinition of `void
RatingWidget::signalRatingChanged(int)'
ratingwidget.moc:84: error: `void RatingWidget::signalRatingChanged(int)'
previously defined here
ratingwidget.moc:271: error: redefinition of `bool
RatingWidget::qt_invoke(int, QUObject*)'
ratingwidget.moc:89: error: `virtual bool RatingWidget::qt_invoke(int,
QUObject*)' previously defined here
ratingwidget.moc:276: error: redefinition of `bool
RatingWidget::qt_emit(int, QUObject*)'
ratingwidget.moc:94: error: `virtual bool RatingWidget::qt_emit(int,
QUObject*)' previously defined here
ratingwidget.moc:287: error: redefinition of `bool
RatingWidget::qt_property(int, int, QVariant*)'
ratingwidget.moc:105: error: `virtual bool RatingWidget::qt_property(int,
int, QVariant*)' previously defined here
ratingwidget.moc:291: error: redefinition of `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
ratingwidget.moc:109: error: `static bool
RatingWidget::qt_static_property(QObject*, int, int, QVariant*)'
previously defined here
make[2]: *** [ratingwidget.lo] Error 1
make[2]: Leaving directory
`/home/mikolaj/kde/head/extragear/graphics/digikam/digikam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/mikolaj/kde/head/extragear/graphics/digikam/digikam'
make: *** [all-recursive] Error 1
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates
http://www.vim.org/scripts/script.php?script_id=1078
CLEWN - http://clewn.sf.net
More information about the Digikam-devel
mailing list