Digikam from svn does not compile because of libkmap

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Digikam from svn does not compile because of libkmap

S. Burmeister
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
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn does not compile because of libkmap

Gilles Caulier-4
Sound like a problem with tmp file generated by a previous build. clean up indeep source code and try again.

Gilles Caulier

2011/1/5 Sven Burmeister <[hidden email]>
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
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn does not compile because of libkmap

S. Burmeister
Am Mittwoch, 5. Januar 2011, 11:08:45 schrieb Gilles Caulier:
> Sound like a problem with tmp file generated by a previous build. clean up
> indeep source code and try again.

No, that's not it. Maybe it depends on some KDE 4.6 code.

Sven
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn does not compile because of libkmap

Michael G. Hansen
In reply to this post by S. Burmeister
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
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn does not compile because of libkmap

Michael G. Hansen
On 01/05/2011 12:20 PM, Michael G. Hansen wrote:

> 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.

Sorry, I misread your mail, thinking you were using the newly supplied
tarball. Other issues could be that some files were not correctly
updated when you svn-updated. Which revision are you on?

Michael
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn does not compile because of libkmap

S. Burmeister
Am Mittwoch, 5. Januar 2011, 12:38:50 schrieb Michael G. Hansen:
> Sorry, I misread your mail, thinking you were using the newly supplied
> tarball. Other issues could be that some files were not correctly
> updated when you svn-updated. Which revision are you on?

You gave the right hint. Not sure how, sicne I only use the KDE cmakekde
script, but there were .mocs in the src dir and doing a svn-clean -f removed
them and fixed the build.

Thanks!

Sven
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel