Bug 265126 - Geolocation Editor compile failure
Summary: Geolocation Editor compile failure
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 2.0.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 21:14 UTC by Andreas K. Huettel
Modified: 2017-08-19 20:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0
Sentry Crash Report:


Attachments
build log (69.71 KB, text/plain)
2011-02-01 21:14 UTC, Andreas K. Huettel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Huettel 2011-02-01 21:14:49 UTC
Created attachment 56759 [details]
build log

Version:           2.0.0 (using KDE 4.6.0) 
OS:                Linux

Full build log will be attached. Excerpt:


In file included from /usr/include/libkmap/itemmarkertiler.h:37,
                 from /var/tmp/portage/media-plugins/kipi-plugins-2.0.0_beta2/work/digikam-2.0.0-beta2/extra/kipi-plugins/gpssync/gpssyncdialog.cpp:85:
/usr/include/libkmap/abstractmarkertiler.h:162: Fehler: expected »,« or »...« before »&« token
In file included from /usr/include/libkmap/itemmarkertiler.h:37,
                 from /var/tmp/portage/media-plugins/kipi-plugins-2.0.0_beta2/work/digikam-2.0.0-beta2/extra/kipi-plugins/gpssync/gpssyncdialog.cpp:85:
/usr/include/libkmap/abstractmarkertiler.h:167: Fehler: »TileIndex« does not name a type
/usr/include/libkmap/abstractmarkertiler.h:168: Fehler: »TileIndex« does not name a type
/usr/include/libkmap/abstractmarkertiler.h:196: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/abstractmarkertiler.h:197: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/abstractmarkertiler.h:198: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/abstractmarkertiler.h:201: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/abstractmarkertiler.h:205: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/abstractmarkertiler.h:210: Fehler: expected »,« or »...« before »::« token
/usr/include/libkmap/abstractmarkertiler.h:212: Fehler: expected »,« or »...« before »::« token
In file included from /usr/include/libkmap/itemmarkertiler.h:37,
                 from /var/tmp/portage/media-plugins/kipi-plugins-2.0.0_beta2/work/digikam-2.0.0-beta2/extra/kipi-plugins/gpssync/gpssyncdialog.cpp:85:
/usr/include/libkmap/abstractmarkertiler.h: In static member function »static int KMap::AbstractMarkerTiler::Tile::maxChildCount()«:
/usr/include/libkmap/abstractmarkertiler.h:76: Fehler: »TileIndex« has not been declared
/usr/include/libkmap/abstractmarkertiler.h:76: Fehler: »TileIndex« has not been declared
In file included from /var/tmp/portage/media-plugins/kipi-plugins-2.0.0_beta2/work/digikam-2.0.0-beta2/extra/kipi-plugins/gpssync/gpssyncdialog.cpp:85:
/usr/include/libkmap/itemmarkertiler.h: At global scope:
/usr/include/libkmap/itemmarkertiler.h:63: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/itemmarkertiler.h:64: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/itemmarkertiler.h:65: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/itemmarkertiler.h:67: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/itemmarkertiler.h:71: Fehler: expected »,« or »...« before »&« token
/usr/include/libkmap/itemmarkertiler.h:74: Fehler: expected »,« or »...« before »::« token
/usr/include/libkmap/itemmarkertiler.h:76: Fehler: expected »,« or »...« before »::« token
/usr/include/libkmap/itemmarkertiler.h:97: Fehler: expected »,« or »...« before »&« token


Reproducible: Didn't try
Comment 1 Andreas K. Huettel 2011-02-01 21:18:37 UTC
The same problem also breaks the build of digikam-2.0.0-beta2 (i.e. the core component).
Comment 2 caulier.gilles 2011-02-01 22:17:19 UTC
Which Qt version you use ?

Gilles Caulier
Comment 3 Andreas K. Huettel 2011-02-01 22:56:57 UTC
qt-4.7.1
Comment 4 Michael G. Hansen 2011-02-02 15:34:08 UTC
Hi Andreas,

thanks for reporting this issue! The relevant error line is this one:

In Datei, eingefügt von /usr/include/libkmap/itemmarkertiler.h:37,
                 von /var/tmp/portage/media-plugins/kipi-plugins-2.0.0_beta2/work/digikam-2.0.0-beta2/extra/kipi-plugins/gpssync/gpssyncdialog.cpp:85:
/usr/include/libkmap/abstractmarkertiler.h:38:28: Fehler: kmap_tileindex.h: Datei oder Verzeichnis nicht gefunden

I forgot to add kmap_tileindex.h to the CMakeLists.txt, but never noticed because I never compiled each library separately. You should be able to fix it with the patch below.

Michael

Index: extra/libkmap/libkmap/CMakeLists.txt
===================================================================
--- extra/libkmap/libkmap/CMakeLists.txt        (revision 1217491)
+++ extra/libkmap/libkmap/CMakeLists.txt        (working copy)
@@ -93,6 +93,7 @@
               kmap_primitives.h
               kmap_modelhelper.h
               kmap_geocoordinates.h
+              kmap_tileindex.h
               altitude-backend.h
               abstractmarkertiler.h
               itemmarkertiler.h
Comment 5 Michael G. Hansen 2011-02-02 15:37:12 UTC
SVN commit 1218487 by mghansen:

Make sure kmap_tileindex.h is installed.

CCBUG: 265126



 M  +1 -0      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1218487
Comment 6 Michael G. Hansen 2011-02-02 16:08:13 UTC
Just to be clear: After applying this patch, you first have to rebuild and install libkmap, then kmap_tileindex.h should be found by the other components.

Michael
Comment 7 Andreas K. Huettel 2011-02-03 15:47:00 UTC
Thanks a lot, the modular build works now!

(Now I'd just like to know what is needed and what is optional, but that is separate bug 265197 ...)