[Digikam-devel] Issues when compiling current svn

Arnd Baecker arnd.baecker at web.de
Wed Dec 23 16:26:45 GMT 2009


Hi all,

first big congratulations for the release!
Because of the recent additions, the svn version
(of course, as always ;-) has not lost to be of interest...

However, I encountered some issues along the way
(using Qt 4.5.3
1.) kdegraphics:
    ./cmake-2.6.0-Linux-i386/bin/cmake
-DCMAKE_INSTALL_PREFIX=$DIGIKAM4DEST
-DCMAKE_INCLUDE_PATH=$DIGIKAM4DEST/include/:/home/myhome/NBB/SOFTWARE/Qt453/qt/include/Qt
-DQT_QMAKE_EXECUTABLE:FILEPATH=/home/myhome//NBB/SOFTWARE/Qt453/qt/bin/qmake
../../kdegraphics/
    leads to
    CMakeFiles/kdcraw.dir/dcrawsettingswidget.o: In function
`KDcrawIface::DcrawSettingsWidget::setup(int)':

/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:529:
undefined reference to `qFlagLocation(char const*)'

    This problem can be overcome by adding -DCMAKE_BUILD_TYPE=Release
    as option to cmake.

    Does anyone have an idea, why there is a problem in the first place?

2.) Running cmake for digikam:
    a) -- cmake package FindIMLIB.cmake was not found. This package needs
Imlib to be compile all program

    b) CMake Error at cmake/modules/FindGraphViz.cmake:138 (MATH):
  math cannot parse the expression: "dot - Graphviz version 2.16 (Fri Feb
8
  12:52:03 UTC 2008)

  *10000 + dot - Graphviz version 2.16 (Fri Feb 8 12:52:03 UTC 2008)

  *100 + dot - Graphviz version 2.16 (Fri Feb 8 12:52:03 UTC 2008)

  ": syntax error, unexpected exp_MINUS, expecting exp_OPENPARENT or
  exp_NUMBER (5)
Call Stack (most recent call first):
  CMakeLists.txt:39 (find_package)

   c) CMake Error at digikam/CMakeLists.txt:179 (IF):
  if had incorrect arguments: ${KDE_VERSION} VERSION_GREATER "4.2.70"
  (Unknown arguments specified).

   d)
   -- Found NEPOMUK: /usr/lib/kde4/lib/libnepomuk.so
CMake Error at digikam/CMakeLists.txt:182 (ENDIF):
  endif An ENDIF command was found outside of a proper IF ENDIF structure.
  Or its arguments did not match the opening IF command.

Because of these, no Makefile is written
(cmake ends with "-- Configuring done")

To solve these I had to
a) comment out the part starting with
   macro_optional_depend_package(IMLIB "Imlib")
   in graphics/CMakeLists.txt
b) cmake/modules/FindGraphViz.cmake
   There I replaced `find_program(DOT dot)`
   by `find_program(DOT dott)` (i.e a non-existing programm ;-)

  (Actually, I do have dot installed, but it maybe does not like
   the version:  dot -V
     dot - Graphviz version 2.16 (Fri Feb  8 12:52:03 UTC 2008)
  )

c) Here I just commented out the corresponding lines
   in digikam/CMakeLists.txt
d) same as with c)

3.)
     This problem can be overcome by adding -DCMAKE_BUILD_TYPE=Release
    as option to cmake.

Then everything seems to work fine ...

Best wishes,

Arnd

Full Output for 1.) kdegraphics
-------------------------------



Linking CXX shared library ../../../lib/libkdcraw.so
cd
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/build/libs/libkdcraw/libkdcraw
&&
/home/myhome/NBB/INSTALL_SOFTWARE/Marble/cmake-2.6.0-Linux-i386/bin/cmake
-E cmake_link_script CMakeFiles/kdcraw.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
-fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual
-fvisibility=hidden -fvisibility-inlines-hidden -O2 -g
-Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc
-shared -Wl,-soname,libkdcraw.so.8 -o ../../../lib/libkdcraw.so.8.0.0
CMakeFiles/kdcraw.dir/kdcraw_automoc.o CMakeFiles/kdcraw.dir/kdcraw.o
CMakeFiles/kdcraw.dir/kdcraw_p.o
CMakeFiles/kdcraw.dir/dcrawsettingswidget.o
CMakeFiles/kdcraw.dir/dcrawinfocontainer.o
CMakeFiles/kdcraw.dir/rawdecodingsettings.o
CMakeFiles/kdcraw.dir/rcombobox.o CMakeFiles/kdcraw.dir/rnuminput.o
CMakeFiles/kdcraw.dir/rexpanderbox.o
CMakeFiles/kdcraw.dir/squeezedcombobox.o
CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_common.o
CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_fileio.o
CMakeFiles/kdcraw.dir/__/libraw/internal/foveon.o
CMakeFiles/kdcraw.dir/__/libraw/src/libraw_cxx.o
CMakeFiles/kdcraw.dir/__/libraw/src/libraw_c_api.o -L/usr/lib/kde4/lib
/usr/lib/kde4/lib/libkdeui.so -lkdeui -lQtSvg -lstreamanalyzer -lstreams
-lkdecore -lsolid -lQtCore -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp
-lQtGui -lQtNetwork -lQtDBus -lQtXml -lXtst -lXcursor -lXfixes -lacl
-lattr -lXrender -lz /usr/lib/kde4/lib/libkio.so -lm -llcms -ljpeg -lbz2
-lresolv -lkdecore -lkdeui -lkdecore -lsolid
-Wl,-rpath,/usr/lib/kde4/lib:::::::::::::::::::::::::::::::::::::::::::::
CMakeFiles/kdcraw.dir/dcrawsettingswidget.o: In function
`KDcrawIface::DcrawSettingsWidget::setup(int)':
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:529:
undefined reference to `qFlagLocation(char const*)'
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:529:
undefined reference to `qFlagLocation(char const*)'
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:532:
undefined reference to `qFlagLocation(char const*)'
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:532:
undefined reference to `qFlagLocation(char const*)'
/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:535:
undefined reference to `qFlagLocation(char const*)'
CMakeFiles/kdcraw.dir/dcrawsettingswidget.o:/home/myhome/NBB/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/libs/libkdcraw/libkdcraw/dcrawsettingswidget.cpp:535:
more undefined references to `qFlagLocation(char const*)' follow
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdcraw.so.8.0.0] Error 1
make[2]: Leaving directory
`/home/scratch/myhome/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/build'
make[1]: *** [libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/all] Error 2
make[1]: Leaving directory
`/home/scratch/myhome/INSTALL_SOFTWARE/DIGIKAM4/kdegraphics/build'




More information about the Digikam-devel mailing list