Bug 162691

Summary: 0.9.4 beta5 compile error imagehistogram.cpp
Product: [Applications] digikam Reporter: Ferdinand Gassauer <gassauer>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.4
Sentry Crash Report:

Description Ferdinand Gassauer 2008-05-27 07:36:26 UTC
Version:           unknown (using 3.5.9 "release 62.1" , openSUSE )
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.22.17-0.1-default

FYI
1)
configure: creating ./config.status
wrong input (flag != 4) at admin/conf.change.pl line 117, <> line 1415.

2)
compiling /hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/histogram/imagehistogram.cpp
g++ -DHAVE_CONFIG_H -I./digikam/libs/histogram -I/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/histogram -I. -I/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg -I/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/digikam -I/opt/kde3/include -I/usr/lib/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 -O2 -fPIC -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 -fPIC -DPIC -c /hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/histogram/imagehistogram.cpp -o ./digikam/libs/histogram/.libs/imagehistogram.o -Wp,-MD,./digikam/libs/histogram/.deps/imagehistogram.TUlo
In file included from /hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:40,
                 from /hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/histogram/imagehistogram.cpp:45:
/usr/include/libkdcraw/rawdecodingsettings.h:35: error: function definition does not declare parameters
In file included from /hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/histogram/imagehistogram.cpp:45:
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:103: error: ‘KDcrawIface::RawDecodingSettings’ has not been declared
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:107: error: ‘KDcrawIface::RawDecodingSettings’ has not been declared
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:178: error: ‘KDcrawIface::RawDecodingSettings’ has not been declared
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:103: error: ‘RawDecodingSettings’ is not a member of ‘KDcrawIface’
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:107: error: ‘RawDecodingSettings’ is not a member of ‘KDcrawIface’
/hd/sdb1/daten/downloads/src/digikam-0.9.4-beta5/digikam/libs/dimg/dimg.h:178: error: ‘RawDecodingSettings’ is not a member of ‘KDcrawIface’
Error creating ./digikam/libs/histogram/imagehistogram.lo. Exit status 1.
make: *** [all] Error 1

hope that helps
cu
ferdinand
Comment 1 Andi Clemens 2008-05-27 10:52:46 UTC
It compiles just fine here.

What is your kdcraw version? I think it is too old.
I'm using the latest from svn (kdcraw-0.1.5-svn)
Comment 2 Andi Clemens 2008-05-27 10:58:21 UTC
Take a look at the README if all dependencies are satisfied.
Comment 3 Ferdinand Gassauer 2008-05-27 11:47:22 UTC
latest for suse 10.3

libkdcraw1-0.1.1-22
libkdcraw3-0.1.4-3.1
libkdcraw2-0.1.3-2.1

configure does not complain about to low version 

I'll try later with svn
Comment 4 caulier.gilles 2008-05-27 11:54:30 UTC
Ferdinand,

Only install last stable libkdcraw on your computer, and all will be fine...

Gilles Caulier
Comment 5 Andi Clemens 2008-05-30 17:06:24 UTC
Ferdinand,

did compiling work for you now?
Do you have all three versions of libkdcraw installed (like mentioned in #3), or is this list only a summary of installable packages?
libkdcraw3-0.1.4-3.1 should work fine...
Comment 6 Ferdinand Gassauer 2008-05-30 17:52:20 UTC
sorry - not yet
Comment 7 Andi Clemens 2008-05-30 19:30:10 UTC
The important question is: "Have you installed all of the three mentioned versions of libkdcraw"?
If so, there might be a problem with autotools finding the right version of the library.
Comment 8 Ferdinand Gassauer 2008-05-30 19:51:25 UTC
yes rpm -qa | grep libkdcraw
Comment 9 Andi Clemens 2008-05-30 21:55:16 UTC
openSUSE 10.3 ?? I have this distro running on a virtualbox server. I'll try to compile it with all three versions installed.
Comment 10 Ferdinand Gassauer 2008-05-30 22:54:58 UTC
yes openSUSE 10.3
Comment 11 Andi Clemens 2008-05-31 04:02:30 UTC
I can compile beta5 under openSUSE 10.3, these are the package versions of libkdcraw I have installed:

libkdcraw1-0.1.1-22
libkdcraw2-0.1.3-2.1
libkdcraw-devel-0.1.4-3.1
libkdcraw3-0.1.4-3.1

Make sure to have the right devel package... everything should compile fine now.
Comment 12 Ferdinand Gassauer 2008-05-31 08:26:45 UTC
with libkdcraw-devel it compiles and installs
thanks

BTW 
IMHO the startup - feedback of digikam should be improved
for some 50.000 images the user is left alone for quite a long time without window and feedback
Comment 13 Ferdinand Gassauer 2008-05-31 08:28:57 UTC
ah sorry  about startup feedback

sometimes I have to start digikam twice because the first hangs / vanishes
the second time it's really fast

Comment 14 caulier.gilles 2008-05-31 08:36:06 UTC
There is a problem with libsqlite3 > 3.6.x and < 3.9.x. There is already a bug report for that:

http://bugs.kde.org/show_bug.cgi?id=162038

Update libsqilte3 to last stable and try again

Note : her under Mandriva 2008.1 i use libsqlite3 3.6.x without problem.

Gilles Caulier
Comment 15 Andi Clemens 2008-05-31 15:17:19 UTC
I will close this report, because the initial problem has been solved. Like Gilles said, take a look at http://bugs.kde.org/show_bug.cgi?id=162038 concerning the long startup of digiKam. Maybe this is related.
The new sqlite3 version is making a lot of problems, for exmaple: http://bugs.kde.org/show_bug.cgi?id=160966
So it might be possible that this is all related.