[Digikam-devel] [Bug 147626] 0.9.2 fails to build
Gilles Caulier
caulier.gilles at gmail.com
Wed Nov 28 12:01:31 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=147626
caulier.gilles gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|general |Portability
------- Additional Comments From darkvision gmx info 2007-10-28 15:56 -------
> ------- Additional Comments From arnd.baecker web de 2007-10-09 17:18 -------
> Markus, what is the status about this issue, any progress?
>
First of all: sorry that i did not reply earlier...
I wasn't able to compile from SVN (i am a KDE-SVN-noob, sorry) but i
tried digikam 0.9.3 beta1.
beta1 still fails to compile, with or without the
"--enable-gcc-hidden-visibility" parameter:
======================================================================
make[4]: Entering directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/digikam/imageplugins/hotpixels'
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I../../..
-I../../../digikam/utilities/imageeditor/editor
-I../../../digikam/utilities/imageeditor/canvas
-I../../../digikam/libs/histogram -I../../../digikam/libs/levels
-I../../../digikam/libs/curves -I../../../digikam/libs/whitebalance
-I../../../digikam/libs/widgets/common
-I../../../digikam/libs/widgets/iccprofiles
-I../../../digikam/libs/widgets/imageplugins
-I../../../digikam/libs/dialogs -I../../../digikam/libs/dimg
-I../../../digikam/libs/dmetadata -I../../../digikam/libs/dimg/filters
-I../../../digikam/digikam -I/opt/kde/include -I/usr/lib/qt/include
-I/usr/X11R6/include -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 -O2
-march=i486 -mcpu=i686 -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 imageeffect_hotpixels.lo
-MD -MP -MF ".deps/imageeffect_hotpixels.Tpo" -c -o
imageeffect_hotpixels.lo imageeffect_hotpixels.cpp; \
then mv -f ".deps/imageeffect_hotpixels.Tpo"
".deps/imageeffect_hotpixels.Plo"; else rm -f
".deps/imageeffect_hotpixels.Tpo"; exit 1; fi
imageeffect_hotpixels.cpp: In member function `void
DigikamHotPixelsImagesPlugin::ImageEffect_HotPixels::slotAddBlackFrame()':
imageeffect_hotpixels.cpp:158: error: type specifier omitted for parameter `
KImageIO::pattern()'
imageeffect_hotpixels.cpp:158: error: type specifier omitted for parameter
imageeffect_hotpixels.cpp:158: error: syntax error before `this'
imageeffect_hotpixels.cpp:159: error: request for member `setCaption' in `
DigikamHotPixelsImagesPlugin::fileSelectDialog', which is of
non-aggregate
type `KFileDialog ()(...)'
imageeffect_hotpixels.cpp:160: confused by earlier errors, bailing out
make[4]: *** [imageeffect_hotpixels.lo] Error 1
make[4]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/digikam/imageplugins/hotpixels'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/digikam/imageplugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/digikam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1'
make: *** [all] Error 2
======================================================================
If i apply the diff from imageplugins-0.9.1 to digikam/imageplugins:
======================================================================
--- ./digikam/imageplugins/hotpixels/imageeffect_hotpixels.cpp
+++ ./digikam/imageplugins/hotpixels/imageeffect_hotpixels.cpp
@ -155,18 +155,20 @
void ImageEffect_HotPixels::slotAddBlackFrame()
{
- KFileDialog fileSelectDialog(QString(), KImageIO::pattern(), this,
"", true);
- fileSelectDialog.setCaption(i18n("Select Black Frame Image"));
- fileSelectDialog.setURL(m_blackFrameURL.path());
+ KFileDialog *fileSelectDialog = new KFileDialog(QString(),
KImageIO::pattern(), this, "", true);
+ fileSelectDialog->setCaption(i18n("Select Black Frame Image"));
+ fileSelectDialog->setURL(m_blackFrameURL.path());
- if (fileSelectDialog.exec() != QDialog::Rejected)
+ if (fileSelectDialog->exec() != QDialog::Rejected)
{
//Load the selected file and insert into the list
- m_blackFrameURL = fileSelectDialog.selectedURL();
+ m_blackFrameURL = fileSelectDialog->selectedURL();
m_blackFrameListView->clear();
new BlackFrameListViewItem(m_blackFrameListView, m_blackFrameURL);
}
+
+ delete fileSelectDialog;
}
void ImageEffect_HotPixels::renderingFinished(void)
======================================================================
then digikam compiles fine for this plugin but will fail here:
======================================================================
Making all in el
make[3]: Entering directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/po/el'
rm -f digikam.gmo; /usr/bin/msgfmt -o digikam.gmo ./digikam.po
./digikam.po:12280:4: parse error
./digikam.po:12280: missing `msgstr' section
./digikam.po:12290:4: parse error
./digikam.po:12290: missing `msgstr' section
./digikam.po:12294:4: parse error
./digikam.po:12294: missing `msgstr' section
./digikam.po:12301:4: parse error
./digikam.po:12301: missing `msgstr' section
./digikam.po:12338:4: parse error
./digikam.po:12339: keyword "msgctxt" unknown
./digikam.po:12338: missing `msgstr' section
./digikam.po:12347:4: parse error
./digikam.po:12348: keyword "msgctxt" unknown
./digikam.po:12347: missing `msgstr' section
./digikam.po:12352:4: parse error
./digikam.po:12353: keyword "msgctxt" unknown
./digikam.po:12352: missing `msgstr' section
./digikam.po:12357: keyword "msgctxt" unknown
./digikam.po:12357:11: parse error
./digikam.po:12379:4: parse error
/usr/bin/msgfmt: too many errors, aborting
make[3]: *** [digikam.gmo] Error 1
make[3]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/po/el'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/test/digikam/source-digikam/digikam-0.9.3-beta1'
make: *** [all] Error 2
======================================================================
If i leave off the translation for 'el' digikam compiles fine on
Slackware 10.2 using gcc 3.3.6. HotPixel still does not work on
10.2/gcc-3.3.6 but that may be because of that build fix i applied.
Markus
------- Additional Comments From caulier.gilles gmail com 2007-11-28 13:01 -------
Markus,
Try a gcc 4.x version...
Gilles
More information about the Digikam-devel
mailing list