[Digikam-devel] Problems building digikam-0.9.2-beta1 - libkexiv2 version dependancy

Mark Purcell msp at debian.org
Thu May 10 08:30:40 BST 2007


All,

Digikam 0.9.2-beta1 fails to build with libkexiv2 version 0.1.1:

[...]
Making all in dmetadata
make[5]: Entering directory `/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/obj-i486-linux-gnu/digikam/libs/dmetadata'
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/libs/dmetadata -I../../.. -I/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/libs/dimg -I/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/digikam -I/usr/include/kde   -I/usr/include/kde   -I/usr/include/kde -I/usr/share/qt3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -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  -c -o dmetadata.lo /home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/libs/dmetadata/dmetadata.cpp
/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/libs/dmetadata/dmetadata.cpp: In member function 'int Digikam::DMetadata::getImageRating() const':
/home/mark/src/debian/kde-extras/build-area/digikam-0.9.2~beta1/./digikam/libs/dmetadata/dmetadata.cpp:215: error: passing 'const Digikam::DMetadata' as 'this' argument of 'bool KExiv2Iface::KExiv2::getExifTagLong(const char*, long int&)' discards qualifiers
make[5]: *** [dmetadata.lo] Error 1

With libkexiv2 0.1.4 it builds fine, however digikam configure only 
checks for libkexiv2 > 0.1 :-(

I suggest the following patch:

--- configure.in.orig   2007-05-10 08:26:02.000000000 +0100
+++ configure.in        2007-05-10 08:26:34.000000000 +0100
@@ -278,7 +278,7 @@
    # check for libkexiv2
    have_libkexiv2=no

-   KDE_PKG_CHECK_MODULES(LIBKEXIV2, libkexiv2 >= 0.1,
+   KDE_PKG_CHECK_MODULES(LIBKEXIV2, libkexiv2 >= 0.1.4,
                          have_libkexiv2=yes, have_libkexiv2=no)

    if test "x$have_libkexiv2" = "xno"; then
@@ -653,7 +653,7 @@
 if test "x$have_libkexiv2" != "xyes"; then
   echo "-- libkexiv2 library found........ NO"
   echo ""
-  echo "digiKam needs libkexiv2 library >= 0.1. You need to install libkexiv2 first"
+  echo "digiKam needs libkexiv2 library >= 0.1.4. You need to install libkexiv2 first"
   echo "libkexiv2 website is at http://www.kipi-plugins.org"
   echo ""
   all_tests=bad

Thanks,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20070510/db9ff30c/attachment.sig>


More information about the Digikam-devel mailing list