[Digikam-devel] Re: Digikam from svn does not compile because of libkmap

Michael G. Hansen mike at mghansen.de
Wed Jan 5 11:20:30 GMT 2011


Hi Sven,

 > In file included from /home/kde-
 > branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.cpp:27:0:
 > 
/home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc: In
 > member function ‘virtual int 
KMap::KMapWidget::qt_metacall(QMetaObject::Call,
 > int, void**)’:
 > /home/kde-
 > branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:143:43: 
error:
 > ‘signalNewSelectionFromMap’ was not declared in this scope

This is very strange, because it looks like the .moc file was found in 
the source tree, where it should not be. And the moc file is apparantly 
very old, because it references functions which are not in the 
digikam2beta1 release any more. Are you doing an in-source build? Have 
you ever accidentally started one? If you are doing an out-of-source 
build, please remove the 
/home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc 
file, or better yet, reset the whole source tree (unpack the source code 
into a new directory), and start a new out-of-source build.

I also checked under KDE 4.5.3 from debian, and the digikam source 
tarball version 2 from 2011-01-03 builds fine here.

I hope this helps,

Michael

On 01/05/2011 11:00 AM, Sven Burmeister wrote:
> Hi!
>
> I try to complile digikam2 with KDE 4.5.4 which fails. Does anyne else have
> these issues?
>
> Sven
>
> In file included from /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.cpp:27:0:
> /home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc: In
> member function ‘virtual int KMap::KMapWidget::qt_metacall(QMetaObject::Call,
> int, void**)’:
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:143:43: error:
> ‘signalNewSelectionFromMap’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:144:46: error:
> ‘signalRemoveCurrentSelection’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:148:62: error:
> ISO C++ forbids declaration of ‘type name’ with no type
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:148:62: error:
> expected ‘>’
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:148:62: error:
> expected ‘(’
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:148:62: error:
> ‘FilterMode’ is not a member of ‘KMap’
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:148:80: error:
> expected primary-expression before ‘)’ token
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:157:33: error:
> ‘slotSetPanMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:158:34: error:
> ‘slotSetZoomMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:159:44: error:
> ‘slotSetFilterDatabaseMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:160:41: error:
> ‘slotSetFilterModelMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:161:45: error:
> ‘slotSetSelectThumbnailMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:162:39: error:
> ‘slotSetSelectionMode’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:163:45: error:
> ‘slotRemoveCurrentSelection’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:164:42: error:
> ‘slotRemoveCurrentFilter’ was not declared in this scope
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:165:80: error:
> ‘slotBackendReady’ was not declared in this scope
> In file included from /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.cpp:27:0:
> /home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc: At
> global scope:
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:198:50: error:
> no ‘void KMap::KMapWidget::signalNewSelectionFromMap()’ member function
> declared in class ‘KMap::KMapWidget’
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:204:53: error:
> no ‘void KMap::KMapWidget::signalRemoveCurrentSelection()’ member function
> declared in class ‘KMap::KMapWidget’
> /home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:222:6:
> error: prototype for ‘void KMap::KMapWidget::signalMouseModeChanged(const
> KMap::MouseMode&)’ does not match any in class ‘KMap::KMapWidget’
> /home/kde-branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.h:178:10:
> error: candidate is: void KMap::KMapWidget::signalMouseModeChanged(const
> KMap::MouseModes&)
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:229:49: error:
> ‘FilterMode’ in namespace ‘KMap’ does not name a type
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:229:68: error:
> ISO C++ forbids declaration of ‘_t1’ with no type
> /home/kde-
> branch/kde/src/digikam2/extra/libkmap/libkmap/kmap_widget.moc:229:71: error:
> no ‘void KMap::KMapWidget::signalNewMapFilter(const int&)’ member function
> declared in class ‘KMap::KMapWidget’
> Generating albumthumbnailloader.moc
> make[2]: *** [extra/libkmap/libkmap/CMakeFiles/kmap.dir/kmap_widget.cpp.o]
> Fehler 1
> make[1]: *** [extra/libkmap/libkmap/CMakeFiles/kmap.dir/all] Fehler 2
> make[1]: *** Warte auf noch nicht beendete Prozesse...
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel




More information about the Digikam-devel mailing list