Bug 165275

Summary: build-failure - imageresize.cpp - 'KToolInvocation' has not been declared
Product: [Applications] digikam Reporter: Treeve Jelbert <treeve>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0
Sentry Crash Report:
Attachments: compile log

Description Treeve Jelbert 2008-06-29 09:03:48 UTC
Version:           0.10.0 (using Devel)
Installed from:    Compiled sources
Compiler:          gcc-4.3.1 
OS:                Linux

failed to compile from svn-20080629


Generating imagedlgbase.moc
/usr/src/digikam-svn/utilities/imageeditor/tools/imageprint.h:0: Warning: No relevant
classesfound. No output generated.
Generating colorgradientwidget.moc

....
[ 20%] Building CXX object
digikam/CMakeFiles/digikam.dir/__/utilities/imageeditor/tools/image
resize.o
/usr/src/digikam-svn/utilities/imageeditor/tools/imageresize.cpp:63:27: error:
KToolInvocation
: No such file or directory
In file included from /usr/src/digikam-svn/utilities/imageeditor/tools/imageprint.cpp:74:
/usr/src/digikam-svn/utilities/imageeditor/tools/imageprint.h:44:2: warning: #warning "TODO:
K
Printer is disabled for KDE4.0";
/usr/src/digikam-svn/utilities/imageeditor/tools/imageprint.cpp:80:2: warning: #warning
"TODO: KPrinter is disabled for KDE4.0";
[ 21%] Building CXX object
digikam/CMakeFiles/digikam.dir/__/utilities/imageeditor/editor/editorwindow.o
/usr/src/digikam-svn/utilities/imageeditor/tools/imageresize.cpp: In member function 'void
Digikam::ImageResize::processCImgUrl(const QString&)':
/usr/src/digikam-svn/utilities/imageeditor/tools/imageresize.cpp:499: error:
'KToolInvocation' has not been declared
make[2]: *** [digikam/CMakeFiles/digikam.dir/__/utilities/imageeditor/tools/imageresize.o]
Error 1
Comment 1 Treeve Jelbert 2008-06-29 09:05:50 UTC
Created attachment 25688 [details]
compile log
Comment 2 Treeve Jelbert 2008-06-29 09:47:18 UTC
The following patch fixes the problem



sed -i 's/<KToolInvocation>/<ktoolinvocation.h>/' \
    utilities/imageeditor/tools/imageresize.cpp
Comment 3 caulier.gilles 2008-06-29 10:06:42 UTC
SVN commit 825718 by cgilles:

fix broken compilation
BUGS: 165275


 M  +1 -1      imageresize.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=825718