Bug 179134 - Compile-error with RawEngine
Summary: Compile-error with RawEngine
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 0.9.4
Platform: Mandriva RPMs Unspecified
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-30 14:01 UTC by MaxiPunkt
Modified: 2018-04-01 09:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MaxiPunkt 2008-12-30 14:01:17 UTC
Version:           0.9.4 (using KDE 3.5.9)
Installed from:    Mandriva RPMs

I'm trying to recompile digikam 0.9.4 with latest kipi-plugins on my System (Mandriva 2008.1).

I've already managed to compile:
* libkipi 0.1.6
* libkexiv2 0.1.8
* libkdcraw 0.1.4
* libkdcraw 0.1.7
* kipi-plugins 0.1.7


No compiling digikam 0.9.4 with other software as mentionend above

configure seems to have no problems:
...
...
...
-- digiKam configure results -------------------
-- using internal libsqlite3...... YES
-- libgphoto2 library found....... YES
-- libtiff library found..... .... YES
-- libpng library found........... YES
-- libjasper library found........ YES
-- liblcms library found.......... YES
-- libkipi library found.......... YES
-- libkexiv2 library found........ YES
-- libkdcraw library found........ YES
------------------------------------------------

Good - your configure finished. Start make now


But make results in errors:
...
...
...
make[5]: Entering directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4/digikam/libs/dimg'
/bin/sh ../../../libtool --silent --tag=CXX   --mode=compile i586-mandriva-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../.. -I/usr/lib/qt3//include -I/usr/include   -I../../../digikam/libs/dimg/loaders -I../../../digikam/libs/dimg/filters -I../../../digikam/libs/dmetadata -I../../../digikam/digikam  -DQT_THREAD_SUPPORT  -D_REENTRANT  -fno-tree-pre -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -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  -MT dimg.lo -MD -MP -MF .deps/dimg.Tpo -c -o dimg.lo dimg.cpp
dimg.cpp:45:35: Fehler: libkdcraw/dcrawbinary.h: Datei oder Verzeichnis nicht gefunden
dimg.cpp: In static member function »static Digikam::DImg::FORMAT Digikam::DImg::fileFormat(const QString&)«:
dimg.cpp:496: Fehler: »KDcrawIface::DcrawBinary« wurde nicht deklariert
make[5]: *** [dimg.lo] Fehler 1
make[5]: Leaving directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4/digikam/libs/dimg'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4/digikam/libs/dimg'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4/digikam/libs'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4/digikam'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/maxipunkt/rpm/BUILD/digikam-0.9.4'
make: *** [all] Fehler 2



The requested file (libkdcraw/dcrawbinary.h) is not part of libkdcraw 0.1.7


When I downgrade to libkdcraw 0.1.5 (which seems to be last version using "dcraw" instead of "LibRaw"), compiling works just fine.

So finally I don't know if this is a bug in digikam or an issue with newer libkdcraw-versions not providing the requested file.
Comment 1 MaxiPunkt 2008-12-30 16:35:30 UTC
Maybe the report above was a little bit confusing, as there was one line to much.
Trying to explain again:

Compiling digikam 0.9.4 with
* libkipi 0.1.6
* libkexiv2 0.1.8
* libkdcraw 0.1.7
* kipi-plugins 0.1.7

=> results in compile-errors


Compiling digikam 0.9.4 with
* libkipi 0.1.6
* libkexiv2 0.1.8
* libkdcraw 0.1.5
* kipi-plugins 0.1.7

=> results in working binaries


The file "libkdcraw/dcrawbinary.h" causing the compile-error is not part of libkdcraw 0.1.7 any more, but still existing in libkdcraw 0.1.5



Beside that there is something strange about compiling kipi-plugins 0.1.7:
The "README" of kipi-plugins say that libkdcraw >= 0.1.6 is required.
But its configure-script only checks for libkdcraw >= 0.1.4, which leads in nice binaries also with libkdcraw = 0.1.5 only.
Comment 2 Rex Dieter 2008-12-31 02:04:31 UTC
fwiw, when using recent versions of libkdcraw (like 0.1.7), you need digikam-0.9.5-beta or newer.
Comment 3 Rex Dieter 2008-12-31 02:07:17 UTC
In the meantime, this patch should help with 0.9.4:
http://rdieter.fedorapeople.org/digikam-0.9.4-libkdcraw.patch

closing->wontfix (shrug, for lack of a better resolution here).