[Digikam-devel] problems with building svn (marble related)
Arnd Baecker
arnd.baecker at web.de
Fri Oct 9 18:57:28 BST 2009
On Fri, 9 Oct 2009, Andi Clemens wrote:
> Maybe I should mention that I'm using KDE 4.3.2 (from the Archlinux 'extra'
> repository) as well as Qt 4.5.3.
> Do you run an older KDE or Qt version?
I was using 4.5.1. Now I am trying to recompile everything with
Qt 4.5.3 (no problem with marble), however for kdegraphics I get
an error about
CMakeFiles/kdcraw.dir/dcrawsettingswidget.o: In function
`KDcrawIface::DcrawSettingsWidget::setup(int)':
/home/myhomedir/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkd$
undefined reference to `qFlagLocation(char const*)'
This one I resolved by adding -DCMAKE_BUILD_TYPE=Release.
The origin of this could be that I am still on kde 4.1.0...
Then I first got the same error as before, but
it turned out that one path was pointing to an older marble
than the one I just compiled (... no comments ... please ... ;-).
So this issue is resolved!
To compile digikam without errors, I had to hack the code a little
bit (all caused by the old KDE version, it seems), see below
for the svn diff.
To summarize: everything works fine now. Thanks a lot!!!
Best, Arnd
Index: digikam/digikamapp.cpp
===================================================================
--- digikam/digikamapp.cpp (revision 1033141)
+++ digikam/digikamapp.cpp (working copy)
@@ -44,6 +44,11 @@
#include <kactioncategory.h>
#endif
+#if KDE_IS_VERSION(4,1,61)
+#else
+#include <QDesktopServices>
+#endif
+
#include <kaboutdata.h>
#include <kactioncollection.h>
#include <kactionmenu.h>
@@ -2564,13 +2569,14 @@
d->showBarAction->setEnabled(t);
}
+
void DigikamApp::slotImportAddImages()
{
QString startingPath;
#if KDE_IS_VERSION(4,1,61)
startingPath = KGlobalSettings::picturesPath();
#else
- picturesPath =
QDesktopServices::storageLocation(QDesktopServices::PicturesLocation);
+ startingPath =
QDesktopServices::storageLocation(QDesktopServices::PicturesLocation);
#endif
QString path = KFileDialog::getExistingDirectory(startingPath, this,
i18n("Select folder to parse"));
Index: showfoto/showfoto.cpp
===================================================================
--- showfoto/showfoto.cpp (revision 1033141)
+++ showfoto/showfoto.cpp (working copy)
@@ -54,6 +54,7 @@
#include <QProgressBar>
#include <QSplitter>
#include <QVBoxLayout>
+#include <QDesktopServices>
// KDE includes
More information about the Digikam-devel
mailing list