Version: SVN 2006.02.26 (0.9-svn) (using KDE Devel) Installed from: Compiled sources Compiler: GCC 4.1 GCC snapshot (February 2006) OS: Linux This error in compilation happens with GCC 4.1 with a recent digikam 0.9svn checkout (2006.02.26). I've seen this error often with GCC 4.1... You might want to check out what's going on... /usr/lib/qt/bin/moc ./cietonguewidget.h -o cietonguewidget.moc if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../digikam/libs/histogram -I../../../digikam/libs/curves -I../../../digikam/libs/dimg -I../../../digikam/libs/lprof -I../../../digikam/digikam -I../../../digikam/utilities/imageeditor/editor -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 -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i586 -mtune=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 -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT cietonguewidget.lo -MD -MP -MF ".deps/cietonguewidget.Tpo" -c -o cietonguewidget.lo cietonguewidget.cpp; \ then mv -f ".deps/cietonguewidget.Tpo" ".deps/cietonguewidget.Plo"; else rm -f ".deps/cietonguewidget.Tpo"; exit 1; fi cietonguewidget.h:91: error: extra qualification 'Digikam::CIETongueWidget::' on member 'BiasedText' make[2]: *** [cietonguewidget.lo] Erreur 1 make[2]: Leaving directory `/tmp/digikam-0.9SVN/digikam/libs/widgets' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/tmp/digikam-0.9SVN/digikam/libs' make: *** [all-recursive] Erreur 1
SVN commit 513831 by cgilles: fix compile using gcc 4.1. Give me a feedback is all right now... CCBUGS: 122747 M +1 -1 cietonguewidget.h --- trunk/extragear/graphics/digikam/libs/widgets/cietonguewidget.h #513830:513831 @@ -88,7 +88,7 @@ void MapPoint(int& icx, int& icy, LPcmsCIExyY xyY); void BiasedLine(int x1, int y1, int x2, int y2); - void CIETongueWidget::BiasedText(int x, int y, QString Txt); + void BiasedText(int x, int y, QString Txt); void Sweep_sRGB(void);
OK, the bug reported previously is fixed, thanks! I don't know if this is still related to GCC (nevertheless I will just report it here), but now the build fails at this point: if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../digikam/digikam -I../../../digikam/utilities/imageeditor/editor -I../../../digikam/libs/jpegutils -I../../../digikam/libs/imageproperties -I../../../digikam/libs/widgets -I../../../digikam/libs/dimg -I../../../digikam/libs/dcraw -I/usr/include/gphoto2 -I/usr/include -I/opt/kde/include -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 -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i586 -mtune=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 -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT camerainfodialog.lo -MD -MP -MF ".deps/camerainfodialog.Tpo" -c -o camerainfodialog.lo camerainfodialog.cpp; \ then mv -f ".deps/camerainfodialog.Tpo" ".deps/camerainfodialog.Plo"; else rm -f ".deps/camerainfodialog.Tpo"; exit 1; fi camerainfodialog.cpp:41: error: definition of 'void CameraInfoDialog::CameraInfoDialog(const QString&, const QString&, const QString&)' is not in namespace enclosing 'CameraInfoDialog' camerainfodialog.cpp:83: error: definition of 'void CameraInfoDialog::CameraInfoDialog()' is not in namespace enclosing 'CameraInfoDialog' make[4]: *** [camerainfodialog.lo] Erreur 1 make[4]: Leaving directory `/tmp/digikam-0.9SVN/digikam/utilities/cameragui' make[3]: *** [all-recursive] Erreur 1 make[3]: Leaving directory `/tmp/digikam-0.9SVN/digikam/utilities' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/tmp/digikam-0.9SVN/digikam' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/tmp/digikam-0.9SVN' make: *** [all] Erreur 2
This is have been fixed in svn trunk. please try again and give me a feedback Gilles Caulier
Now fails here with SVN 515426. Making all in histogram make[2]: Entering directory `/tmp/digikam-0.9SVN/digikam/libs/histogram' if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../digikam/libs/dimg -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 -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i586 -mtune=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 -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT imagehistogram.lo -MD -MP -MF ".deps/imagehistogram.Tpo" -c -o imagehistogram.lo imagehistogram.cpp; \ then mv -f ".deps/imagehistogram.Tpo" ".deps/imagehistogram.Plo"; else rm -f ".deps/imagehistogram.Tpo"; exit 1; fi ../../../digikam/libs/dimg/dcolor.h:63: error: extra qualification 'Digikam::DColor::' on member 'setColor' ../../../digikam/libs/dimg/dcolor.h:70: error: extra qualification 'Digikam::DColor::' on member 'setPixel' make[2]: *** [imagehistogram.lo] Erreur 1 make[2]: Leaving directory `/tmp/digikam-0.9SVN/digikam/libs/histogram' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/tmp/digikam-0.9SVN/digikam/libs' make: *** [all-recursive] Erreur 1
OK... I fixed the previous error in my local copy (basically doing the same thing you did to fix cietonguewidget.h; removing 'Digikam::DColor::' in front of the two offending functions digikam/libs/dimg/dcolor.h) But now this is what I get: /bin/sh ../../libtool --silent --tag=CXX --mode=link g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i586 -mtune=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 -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o showfoto -R /opt/kde/lib -R /opt/kde/lib -R /usr/lib/qt/lib -R /usr/X11R6/lib -L/opt/kde/lib -L/usr/lib/qt/lib -L/usr/X11R6/lib -Wl,--as-needed -Wl,--enable-new-dtags main.o showfoto.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore -lkdeui -lkutils -lkio -lkparts -ljpeg -lexiv2 ../../digikam/showfoto/setup/libsetup.la ../../digikam/libs/widgets/libwidgets.la ../../digikam/libs/dialogs/libdialog.la ../../digikam/libs/imageproperties/libimagepropertiesshowfoto.la ../../digikam/libs/thumbbar/libthumbbar.la ../../digikam/utilities/imageeditor/canvas/libdimgcanvas.la ../../digikam/utilities/imageeditor/editor/libdimgeditor.la ../../digikam/utilities/imageeditor/editor/libshowfoto.la ../../digikam/utilities/splashscreen/libsplashscreen.la ../../digikam/libs/threadimageio/libthreadimageio.la ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::qt_property(int, int, QVariant*)':sidebar.cpp:(.text+0x10e): undefined reference to `KMultiTabBar::qt_property(int, int, QVariant*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::qt_cast(char const*)':sidebar.cpp:(.text+0x14f): undefined reference to `KMultiTabBar::qt_cast(char const*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::staticMetaObject()':sidebar.cpp:(.text+0x1c1): undefined reference to `KMultiTabBar::staticMetaObject()' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::deleteTab(QWidget*)':sidebar.cpp:(.text+0x389): undefined reference to `KMultiTabBar::removeTab(int)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::appendTab(QWidget*, QPixmap const&, QString const&)':sidebar.cpp:(.text+0x40b): undefined reference to `KMultiTabBar::appendTab(QPixmap const&, int, QString const&)' :sidebar.cpp:(.text+0x43c): undefined reference to `KMultiTabBar::tab(int) const' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::setSplitter(QSplitter*)':sidebar.cpp:(.text+0x4a9): undefined reference to `KMultiTabBar::setStyle(KMultiTabBar::KMultiTabBarStyle)' :sidebar.cpp:(.text+0x4bc): undefined reference to `KMultiTabBar::showActiveTabTexts(bool)' :sidebar.cpp:(.text+0x50d): undefined reference to `KMultiTabBar::setPosition(KMultiTabBar::KMultiTabBarPosition)' :sidebar.cpp:(.text+0x52f): undefined reference to `KMultiTabBar::setPosition(KMultiTabBar::KMultiTabBarPosition)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::Sidebar(QWidget*, char const*, Digikam::Sidebar::Side, bool)':sidebar.cpp:(.text+0x57a): undefined reference to `KMultiTabBar::KMultiTabBar(KMultiTabBar::KMultiTabBarMode, QWidget*, char const*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::setActiveTab(QWidget*)':sidebar.cpp:(.text+0x6c8): undefined reference to `KMultiTabBar::setTab(int, bool)' :sidebar.cpp:(.text+0x6e8): undefined reference to `KMultiTabBar::setTab(int, bool)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::qt_emit(int, QUObject*)':sidebar.cpp:(.text+0x7af): undefined reference to `KMultiTabBar::qt_emit(int, QUObject*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::shrink()':sidebar.cpp:(.text+0x84f): undefined reference to `KMultiTabBar::tabs()' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::clicked(int)':sidebar.cpp:(.text+0x8f6): undefined reference to `KMultiTabBar::setTab(int, bool)' :sidebar.cpp:(.text+0x916): undefined reference to `KMultiTabBar::setTab(int, bool)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::qt_invoke(int, QUObject*)':sidebar.cpp:(.text+0x9ff): undefined reference to `KMultiTabBar::qt_invoke(int, QUObject*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::Sidebar(QWidget*, char const*, Digikam::Sidebar::Side, bool)':sidebar.cpp:(.text+0xa4a): undefined reference to `KMultiTabBar::KMultiTabBar(KMultiTabBar::KMultiTabBarMode, QWidget*, char const*)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::~Sidebar()':sidebar.cpp:(.text+0xc87): undefined reference to `KMultiTabBar::~KMultiTabBar()' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::~Sidebar()':sidebar.cpp:(.text+0xce7): undefined reference to `KMultiTabBar::~KMultiTabBar()' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::~Sidebar()':sidebar.cpp:(.text+0xd47): undefined reference to `KMultiTabBar::~KMultiTabBar()' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o): In function `Digikam::Sidebar::loadViewState()':sidebar.cpp:(.text+0xedf): undefined reference to `KMultiTabBar::setTab(int, bool)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o):(.data.rel.ro._ZTVN7Digikam7SidebarE[vtable for Digikam::Sidebar]+0x198): undefined reference to `KMultiTabBar::fontChange(QFont const&)' ../../digikam/libs/widgets/.libs/libwidgets.a(sidebar.o):(.data.rel.ro._ZTIN7Digikam7SidebarE[typeinfo for Digikam::Sidebar]+0x8): undefined reference to `typeinfo for KMultiTabBar' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(imagepropertiessidebar.o):(.data.rel.ro._ZTVN7Digikam22ImagePropertiesSideBarE[vtable for Digikam::ImagePropertiesSideBar]+0x198): undefined reference to `KMultiTabBar::fontChange(QFont const&)' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(exifwidget.o): In function `Digikam::ExifWidget::getTagDescription(QString const&)':exifwidget.cpp:(.text+0x3d9): undefined reference to `Exiv2::ExifKey::ExifKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :exifwidget.cpp:(.text+0x3ec): undefined reference to `Exiv2::ExifTags::tagDesc(unsigned short, Exiv2::IfdId)' :exifwidget.cpp:(.text+0x40b): undefined reference to `Exiv2::ExifKey::~ExifKey()' :exifwidget.cpp:(.text+0x460): undefined reference to `Exiv2::ExifKey::~ExifKey()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(exifwidget.o): In function `Digikam::ExifWidget::getTagTitle(QString const&)':exifwidget.cpp:(.text+0x619): undefined reference to `Exiv2::ExifKey::ExifKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :exifwidget.cpp:(.text+0x62c): undefined reference to `Exiv2::ExifTags::tagTitle(unsigned short, Exiv2::IfdId)' :exifwidget.cpp:(.text+0x64b): undefined reference to `Exiv2::ExifKey::~ExifKey()' :exifwidget.cpp:(.text+0x6a0): undefined reference to `Exiv2::ExifKey::~ExifKey()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(exifwidget.o): In function `Digikam::ExifWidget::decodeMetadata()':exifwidget.cpp:(.text+0x16a4): undefined reference to `Exiv2::ExifData::ExifData()' :exifwidget.cpp:(.text+0x16dc): undefined reference to `Exiv2::ExifData::load(unsigned char const*, long)' :exifwidget.cpp:(.text+0x16f4): undefined reference to `Exiv2::ExifData::sortByKey()' :exifwidget.cpp:(.text+0x1a5e): undefined reference to `Exiv2::operator<<(std::basic_ostream<char, std::char_traits<char> >&, Exiv2::Exifdatum const&)' :exifwidget.cpp:(.text+0x1c83): undefined reference to `Exiv2::ExifData::~ExifData()' :exifwidget.cpp:(.text+0x1cfa): undefined reference to `Exiv2::ExifData::~ExifData()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(exifwidget.o):(.data.DW.ref._ZTIN5Exiv25ErrorE[DW.ref._ZTIN5Exiv25ErrorE]+0x0): undefined reference to `typeinfo for Exiv2::Error' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(iptcwidget.o): In function `Digikam::IptcWidget::decodeMetadata()':iptcwidget.cpp:(.text+0xaed): undefined reference to `Exiv2::IptcData::load(unsigned char const*, long)' :iptcwidget.cpp:(.text+0xb3f): undefined reference to `Exiv2::IptcData::sortByKey()' :iptcwidget.cpp:(.text+0xe19): undefined reference to `Exiv2::operator<<(std::basic_ostream<char, std::char_traits<char> >&, Exiv2::Iptcdatum const&)' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(iptcwidget.o): In function `Digikam::IptcWidget::getTagDescription(QString const&)':iptcwidget.cpp:(.text+0x18c3): undefined reference to `Exiv2::IptcKey::IptcKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :iptcwidget.cpp:(.text+0x18d7): undefined reference to `Exiv2::IptcDataSets::dataSetDesc(unsigned short, unsigned short)' :iptcwidget.cpp:(.text+0x18f1): undefined reference to `vtable for Exiv2::IptcKey' :iptcwidget.cpp:(.text+0x198a): undefined reference to `vtable for Exiv2::IptcKey' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(iptcwidget.o): In function `Digikam::IptcWidget::getTagTitle(QString const&)':iptcwidget.cpp:(.text+0x1bb3): undefined reference to `Exiv2::IptcKey::IptcKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :iptcwidget.cpp:(.text+0x1bc7): undefined reference to `Exiv2::IptcDataSets::dataSetTitle(unsigned short, unsigned short)' :iptcwidget.cpp:(.text+0x1be1): undefined reference to `vtable for Exiv2::IptcKey' :iptcwidget.cpp:(.text+0x1c7a): undefined reference to `vtable for Exiv2::IptcKey' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(makernotewidget.o): In function `Digikam::MakerNoteWidget::getTagDescription(QString const&)':makernotewidget.cpp:(.text+0x3d9): undefined reference to `Exiv2::ExifKey::ExifKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :makernotewidget.cpp:(.text+0x3ec): undefined reference to `Exiv2::ExifTags::tagDesc(unsigned short, Exiv2::IfdId)' :makernotewidget.cpp:(.text+0x40b): undefined reference to `Exiv2::ExifKey::~ExifKey()' :makernotewidget.cpp:(.text+0x460): undefined reference to `Exiv2::ExifKey::~ExifKey()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(makernotewidget.o): In function `Digikam::MakerNoteWidget::getTagTitle(QString const&)':makernotewidget.cpp:(.text+0x619): undefined reference to `Exiv2::ExifKey::ExifKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :makernotewidget.cpp:(.text+0x62c): undefined reference to `Exiv2::ExifTags::tagTitle(unsigned short, Exiv2::IfdId)' :makernotewidget.cpp:(.text+0x64b): undefined reference to `Exiv2::ExifKey::~ExifKey()' :makernotewidget.cpp:(.text+0x6a0): undefined reference to `Exiv2::ExifKey::~ExifKey()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(makernotewidget.o): In function `Digikam::MakerNoteWidget::decodeMetadata()':makernotewidget.cpp:(.text+0x1654): undefined reference to `Exiv2::ExifData::ExifData()' :makernotewidget.cpp:(.text+0x168c): undefined reference to `Exiv2::ExifData::load(unsigned char const*, long)' :makernotewidget.cpp:(.text+0x16a4): undefined reference to `Exiv2::ExifData::sortByKey()' :makernotewidget.cpp:(.text+0x1a0e): undefined reference to `Exiv2::operator<<(std::basic_ostream<char, std::char_traits<char> >&, Exiv2::Exifdatum const&)' :makernotewidget.cpp:(.text+0x1c33): undefined reference to `Exiv2::ExifData::~ExifData()' :makernotewidget.cpp:(.text+0x1caa): undefined reference to `Exiv2::ExifData::~ExifData()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(pngmetaloader.o): In function `Digikam::PNGMetaLoader::load(QString const&)':pngmetaloader.cpp:(.text+0xb13): undefined reference to `Exiv2::IptcData::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :pngmetaloader.cpp:(.text+0xb1f): undefined reference to `Exiv2::Iptcdatum::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :pngmetaloader.cpp:(.text+0xde3): undefined reference to `Exiv2::IptcData::copy()' :pngmetaloader.cpp:(.text+0xdf8): undefined reference to `Exiv2::DataBuf::release()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(dmetaloader.o): In function `Digikam::DMetaLoader::saveWithExiv2(QString const&)':dmetaloader.cpp:(.text+0x190): undefined reference to `Exiv2::ImageFactory::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :dmetaloader.cpp:(.text+0x1d3): undefined reference to `Exiv2::ExifData::ExifData()' :dmetaloader.cpp:(.text+0x1f4): undefined reference to `Exiv2::ExifData::load(unsigned char const*, long)' :dmetaloader.cpp:(.text+0x204): undefined reference to `Exiv2::ExifData::~ExifData()' :dmetaloader.cpp:(.text+0x24f): undefined reference to `Exiv2::IptcData::load(unsigned char const*, long)' :dmetaloader.cpp:(.text+0x317): undefined reference to `Exiv2::ExifData::~ExifData()' ../../digikam/libs/imageproperties/.libs/libimagepropertiesshowfoto.a(dmetaloader.o): In function `Digikam::DMetaLoader::loadWithExiv2(QString const&)':dmetaloader.cpp:(.text+0x51a): undefined reference to `Exiv2::ImageFactory::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' :dmetaloader.cpp:(.text+0x562): undefined reference to `Exiv2::ExifData::copy()' :dmetaloader.cpp:(.text+0x574): undefined reference to `Exiv2::DataBuf::release()' :dmetaloader.cpp:(.text+0x635): undefined reference to `Exiv2::IptcData::copy()' :dmetaloader.cpp:(.text+0x647): undefined reference to `Exiv2::DataBuf::release()' collect2: ld returned 1 exit status make[4]: *** [showfoto] Erreur 1 make[4]: Leaving directory `/tmp/digikam-0.9SVN/digikam/showfoto' make[3]: *** [all-recursive] Erreur 1 make[3]: Leaving directory `/tmp/digikam-0.9SVN/digikam/showfoto' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/tmp/digikam-0.9SVN/digikam' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/tmp/digikam-0.9SVN' make: *** [all] Erreur 2
SVN commit 526098 by cgilles: digikam from trunk : fix broken compilation using gcc 4.1 CCBUGS: 122747 M +2 -6 dcolor.h --- trunk/extragear/graphics/digikam/libs/dimg/dcolor.h #526097:526098 @@ -60,14 +60,14 @@ If sixteenBit is true, 8 bytes are read. Inline method. */ - void DColor::setColor(const uchar *data, bool sixteenBit = false); + void setColor(const uchar *data, bool sixteenBit = false); /** Write the values of this color to the given memory location. If sixteenBit is false, 4 bytes are written. If sixteenBit is true, 8 bytes are written. Inline method. */ - void DColor::setPixel(uchar *data) const; + void setPixel(uchar *data) const; int red () const { return m_red; } int green() const { return m_green; } @@ -139,15 +139,11 @@ void blendClamp16(); }; - } // NameSpace Digikam - // Inline methods #include "dcolorpixelaccess.h" #include "dcolorblend.h" - - #endif /* DCOLOR_H */
DColor implementation fixed. Try again and give me a feedback Gilles Caulier
SVN commit 526233 by cgilles: digikam from trunk :Fix Broken compilation under GCC 4.1 : no need to use Digikam namescape under Digikam namespace itself. CCMAIL: digikam-devel@kde.org CCBUGS: 122747 M +103 -94 digikam/albumiconview.cpp M +13 -10 digikam/albumiconview.h M +23 -22 digikam/cameralist.cpp M +19 -15 digikam/digikamapp.cpp M +17 -18 digikam/digikamapp.h M +1 -1 digikam/kipiinterface.cpp M +7 -7 digikam/scanlib.cpp M +1 -1 libs/dialogs/ctrlpaneldlg.h M +1 -1 libs/dialogs/imageguidedlg.cpp M +1 -1 libs/dialogs/imageguidedlg.h M +3 -3 libs/dimg/filters/dimggaussianblur.cpp M +1 -1 libs/dimg/filters/dimggaussianblur.h M +21 -21 libs/dimg/filters/dimgimagefilters.cpp M +4 -4 libs/dimg/filters/dimgsharpen.cpp M +1 -1 libs/dimg/filters/dimgsharpen.h M +30 -30 libs/histogram/imagehistogram.cpp M +28 -28 libs/imageproperties/imagepropertiescolorstab.cpp M +1 -1 libs/imageproperties/imagepropertiessidebar.cpp M +1 -1 libs/imageproperties/imagepropertiessidebar.h M +1 -1 libs/imageproperties/imagepropertiessidebarcamgui.cpp M +1 -1 libs/imageproperties/imagepropertiessidebarcamgui.h M +1 -1 libs/imageproperties/imagepropertiessidebardb.cpp M +1 -1 libs/imageproperties/imagepropertiessidebardb.h M +9 -9 libs/levels/imagelevels.cpp M +2 -2 libs/levels/imagelevels.h M +21 -21 libs/widgets/common/curveswidget.cpp M +1 -1 libs/widgets/common/curveswidget.h M +43 -43 libs/widgets/common/histogramwidget.cpp M +1 -1 libs/widgets/imageplugins/imageguidewidget.cpp M +1 -1 utilities/cameragui/cameracontroller.cpp M +1 -1 utilities/cameragui/cameraui.cpp M +1 -1 utilities/imageeditor/canvas/canvas.cpp M +6 -6 utilities/imageeditor/canvas/imagepluginloader.h M +10 -10 utilities/imageeditor/editor/editorwindow.cpp M +1 -1 utilities/setup/setup.cpp
The errors in dcolor.h are now fixed, but I still get the same linking(?) error as in comment #5. Maybe this has something to do with my setup, but i doubt it; i build tons of different packages daily (many KDE packages too...).
yes, restart from scratch. Get a fresh svn checkout and try to compile from the start. Thanks in advance I have fixed a lot's of similar error in current implementation (Digikam namespace encapsulation). It's more clean now. Gilles Caulier
At 10. April 2006, from Rainer Krienke on digikam-devel mailing list: Just compiled current svn version on a SuSE 10.1 beta6 system using gcc 4.1.0. No problems here. It compiled and runs without any problems. I close this file now. Gilles Caulier