Bug 340295

Summary: make fails on imagedescedittab.cpp has no member named 'textEdit'
Product: [Applications] digikam Reporter: Taurnil <taurnil.oronar>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, pino
Priority: NOR    
Version: 4.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.0
Sentry Crash Report:

Description Taurnil 2014-10-24 10:45:12 UTC
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/utilities/imageeditor/main/imagewindow.cpp.o
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/libs/dialogs/deletedialog.cpp.o
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/imagepropertiessidebarcamgui.cpp.o
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/imagepropertiessidebardb.cpp.o
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/cameraitempropertiestab.cpp.o
[ 46%] Building CXX object core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/imagedescedittab.cpp.o
/usr/src/digikam-4.4.0/core/libs/imageproperties/imagedescedittab.cpp: In constructor 'Digikam::ImageDescEditTab::ImageDescEditTab(QWidget*)':
/usr/src/digikam-4.4.0/core/libs/imageproperties/imagedescedittab.cpp:433:19: error: 'class KExiv2Iface::AltLangStrEdit' has no member named 'textEdit'
     d->titleEdit->textEdit()->installEventFilter(this);
                   ^
/usr/src/digikam-4.4.0/core/libs/imageproperties/imagedescedittab.cpp: In member function 'void Digikam::ImageDescEditTab::setFocusToTitlesEdit()':
/usr/src/digikam-4.4.0/core/libs/imageproperties/imagedescedittab.cpp:536:19: error: 'class KExiv2Iface::AltLangStrEdit' has no member named 'textEdit'
     d->titleEdit->textEdit()->setFocus();
                   ^
core/app/CMakeFiles/digikam.dir/build.make:204: recipe for target 'core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/imagedescedittab.cpp.o' failed
make[2]: *** [core/app/CMakeFiles/digikam.dir/__/libs/imageproperties/imagedescedittab.cpp.o] Error 1
CMakeFiles/Makefile2:10481: recipe for target 'core/app/CMakeFiles/digikam.dir/all' failed
make[1]: *** [core/app/CMakeFiles/digikam.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1. compile with -DWITH_ImageMagick=ON
2.run make
3.make fails


Expected Results:  
A successful compile with -DWITH_ImageMagick=ON

Using ImageMagick-6.8.9-7. I have to use -DWITH_ImageMagick=OFF to get around this problem.
Comment 1 Taurnil 2014-10-24 10:52:48 UTC
Forgot to mention. Using libkexiv2-4.14.2 instead of those provided with your tarball.
Comment 2 Taurnil 2014-10-24 10:59:37 UTC
(In reply to Taurnil from comment #1)
> Forgot to mention. Using libkexiv2-4.14.2 instead of those provided with
> your tarball.

I have to use -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=OFF, else your provide libkexiv2 and libkdcraw will conflict (over write) the ones provided by KDE. Which means I would have to install digikam in order to satisfy the optional depends of libkexiv2 and libkdcraw used by;

kdeartwork
kdegraphics-thumbnailers
kdeplasma-addons
calligra
kphotoalbum
Comment 3 caulier.gilles 2014-10-24 11:12:17 UTC
-DWITH_ImageMagick=ON

==> we don't care about. digiKam do not use ImageMagick

Libkexiv2 problem is already fixed with this commit :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/f6945f23e0ed1e11f26e2c7e62b02baa8cfa640e

Gilles Caulier
Comment 4 Taurnil 2014-10-24 11:46:59 UTC
@Gilles

Hey thanks, that worked great.

On a side note. In other words that -D imagemagick switch does not exist? Are there other switches like that?
Comment 5 caulier.gilles 2014-10-24 11:51:18 UTC
Look in README files

Gilles Caulier