[Digikam-devel] Libkdcraw version.h file not created by cmake

Christoph Siedentop christophsiedentop at gmail.com
Sun Mar 25 20:22:47 BST 2012


Hi All,

I am trying to install the sources from git ( 47cd840268cf8 ) to a
vanilla Kubuntu 11.10 system.

In Libkdcraw I came upon a problem: FindKdcraw.cmake is looking for
${KDCRAW_INCLUDE_DIR}/libkdcraw/version.h

I gathered so much that version.h.cmake should be copied by CMake to
build/extra/libkdcraw/libkdcraw/version.h , however, CONFIGURE_FILE in
libkdcraw/CMakeLists.txt:25 is not run. (In fact, the directory is not
even created.)

The relevant error message is below (from running cmake ):
-- Check for Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder:
/home/chris/devel/digikam-sc/extra/libkdcraw
CMake Error at extra/libkdcraw/cmake/modules/FindKdcraw.cmake:137 (file):
  file Internal CMake error when trying to open file:
  /home/chris/devel/digikam-sc/build/extra/libkdcraw/libkdcraw/version.h for
  reading.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:123 (FIND_PACKAGE)

Can anyone give any pointers on what could be wrong, please?

Best regards,
Christoph
----
Git hash for libkdcraw  is b0cfc14a4dad
-------------- next part --------------
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.7 include dir: /usr/include
-- Found KDE 4.7 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Local kdegraphics libraies will be compiled... YES
-- Handbooks will be compiled.................... NO
-- Translations will be compiled................. NO
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libmediawiki

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * QJSON - Qt library for handling JSON data

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkgeomap
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkexiv2
-- kexiv2 found, the demo application will be compiled.
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkface
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is /usr/share/opencv
-- External libface was not found, use internal version instead...
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: kipi-plugins
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkexiv2
-- Check for Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkdcraw
CMake Error at extra/libkdcraw/cmake/modules/FindKdcraw.cmake:137 (file):
  file Internal CMake error when trying to open file:
  /home/chris/devel/digikam-sc/build/extra/libkdcraw/libkdcraw/version.h for
  reading.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:123 (FIND_PACKAGE)


-- Check Kipi library in local sub-folder...
-- Found Kipi library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkipi
CMake Warning at extra/kipi-plugins/CMakeLists.txt:139 (MESSAGE):
  libkdcraw: Version information not found, your version is probably too old.


-- Could NOT find LibXml2  (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) 
-- checking for one of the modules 'libgpod-1.0'
-- libgpod dir: 
-- libgpod lib: 
-- libgpod def: 
-- libgpod ver: 
-- checking for module 'gdk-pixbuf-2.0'
--   package 'gdk-pixbuf-2.0' not found
-- Could NOT find Gdk  (missing:  GDK_INCLUDE_DIR GDK_LIBRARIES) 
-- Could NOT find GLIB2  (missing:  GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR) 
-- checking for module 'gobject-2.0'
--   package 'gobject-2.0' not found
-- Could NOT find GOBJECT  (missing:  GOBJECT_LIBRARIES GOBJECT_INCLUDE_DIR) 
-- Could NOT find KdepimLibs  (missing:  KdepimLibs_CONFIG) 
-- Could NOT find QCA2  (missing:  QCA2_LIBRARIES QCA2_INCLUDE_DIR) 
-- Check for Ksane library in local sub-folder...
-- Found Ksane library in local sub-folder: /home/chris/devel/digikam-sc/extra/libksane
CMake Error at cmake/modules/FindKSane.cmake:137 (file):
  file Internal CMake error when trying to open file:
  /home/chris/devel/digikam-sc/build/extra/libksane/libksane/version.h for
  reading.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32 (find_package)
  extra/kipi-plugins/CMakeLists.txt:157 (MACRO_OPTIONAL_FIND_PACKAGE)


-- Check for KGeoMap library in local sub-folder...
-- Found KGeoMap library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkgeomap
-- Check Mediawiki library in local sub-folder...
-- Found Mediawiki library in local sub-folder: /home/chris/devel/digikam-sc/extra/libmediawiki
-- Check Vkontakte library in local sub-folder...
-- Found Vkontakte library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkvkontakte
-- libkgeomap: Found version 2.0.0
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- CMake version: cmake version 2.8.5

-- CMake version (cleaned): cmake version 2.8.5

-- 
-- ----------------------------------------------------------------------------------
--  kipi-plugins 2.6.0-beta3 dependencies results   <http://www.digikam.org>
-- 
--  libjpeg library found.................... YES
--  libtiff library found.................... YES
--  libpng library found..................... YES
--  libkipi library found.................... YES
--  libkexiv2 library found.................. YES
--  libkdcraw library found.................. YES
--  libxml2 library found.................... NO  (optional)
--  libxslt library found.................... NO  (optional)
--  libexpat library found................... YES (optional)
--  native threads support library found..... YES (optional)
--  libopengl library found.................. YES (optional)
--  Qt4 OpenGL module found.................. YES
--  libopencv library found.................. YES (optional)
--  QJson library found...................... YES (optional)
--  libgpod library found.................... NO  (optional)
--  Gdk library found........................ NO  (optional)
--  libkdepim library found.................. NO  (optional)
--  qca2 library found....................... NO  (optional)
--  libkgeomap library found................. YES (optional)
--  libmediawiki library found............... YES (optional)
--  libkvkontakte library found.............. YES (optional)
--  boost library found...................... YES (optional)
--  OpenMP library found..................... YES (optional)
--  libX11 library found..................... NO  (optional)
--  libksane library found................... YES (optional)
-- 
--  kipi-plugins will be compiled............ YES
--  Shwup will be compiled................... NO  (optional - Look README file for more details about dependencies)
--  YandexFotki will be compiled............. NO  (optional - Look README file for more details about dependencies)
--  HtmlExport will be compiled.............. NO  (optional - Look README file for more details about dependencies)
--  AdvancedSlideshow will be compiled....... NO  (optional - Look README file for more details about dependencies)
--  ImageViewer will be compiled............. NO  (optional - Look README file for more details about dependencies)
--  AcquireImages will be compiled........... YES (optional)
--  DNGConverter will be compiled............ YES (optional)
--  RemoveRedEyes will be compiled........... YES (optional)
--  Debian Screenshots will be compiled...... YES (optional)
--  Facebook will be compiled................ YES (optional)
--  Imgur will be compiled................... YES (optional)
--  VKontakte will be compiled............... YES (optional)
--  IpodExport will be compiled.............. NO  (optional - Look README file for more details about dependencies)
--  Calendar will be compiled................ NO  (optional - Look README file for more details about dependencies)
--  GPSSync will be compiled................. YES (optional)
--  Mediawiki will be compiled............... YES (optional)
--  Panorama will be compiled................ YES (optional)
-- ----------------------------------------------------------------------------------
-- 
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:86 (INCLUDE):
  File /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
  includes /usr/share/kde4/apps/cmake/modules/CMakeParseArguments.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindThreads.cmake:156 (INCLUDE)
  /usr/share/kde4/apps/cmake/modules/Qt4ConfigDependentSettings.cmake:32 (FIND_PACKAGE)
  /usr/share/kde4/apps/cmake/modules/FindQt4.cmake:1230 (INCLUDE)
  extra/kipi-plugins/photolayoutseditor/utils/qtpropertybrowser/CMakeLists.txt:3 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Kipi library in cache: kipi
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: digikam
-- Check for Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkdcraw
CMake Error at extra/libkdcraw/cmake/modules/FindKdcraw.cmake:137 (file):
  file Internal CMake error when trying to open file:
  /home/chris/devel/digikam-sc/build/extra/libkdcraw/libkdcraw/version.h for
  reading.
Call Stack (most recent call first):
  core/CMakeLists.txt:151 (FIND_PACKAGE)


-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkexiv2
-- Check Kipi library in local sub-folder...
-- Found Kipi library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkipi
-- Check Kface library in local sub-folder...
-- Found Kface library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkface
-- Check for KGeoMap library in local sub-folder...
-- Found KGeoMap library in local sub-folder: /home/chris/devel/digikam-sc/extra/libkgeomap
-- checking for module 'libpgf'
--   package 'libpgf' not found
-- Could NOT find any working clapack installation
-- Check for LCMS1 availability...
-- Found LCMS1: /usr/lib/x86_64-linux-gnu/liblcms.so /usr/include
-- Identified libjpeg version: 62
-- Found MySQL server executable at: /usr/sbin/mysqld
-- Found MySQL install_db executable at: /usr/bin/mysql_install_db
CMake Warning at core/CMakeLists.txt:298 (MESSAGE):
  libkdcraw: Version information not found, your version is probably too old.


-- libkgeomap: Found version 2.0.0
-- Could NOT find KdepimLibs  (missing:  KdepimLibs_CONFIG) 
-- Could NOT find GLIB2  (missing:  GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR) 
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- PKGCONFIG() indicates that lensfun is not installed (install the package which contains lensfun.pc if you want to support this feature)
-- Could NOT find LensFun  (missing:  LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES) 
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- PKGCONFIG() indicates that lqr-1 is not installed (install the package which contains lqr-1.pc if you want to support this feature)
-- Could NOT find Lqr-1  (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES) 
-- Found SharedDesktopOntologies: /usr/share/ontology 
-- Found SharedDesktopOntologies: /usr/share/ontology  (found version "0.7.0", required is "0.2")
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- 
-- ----------------------------------------------------------------------------------
--  digiKam 2.6.0-beta3 dependencies results   <http://www.digikam.org>
-- 
--  Qt4 SQL module found..................... YES
--  MySQL Server found....................... YES
--  MySQL install_db tool found.............. YES
--  libtiff library found.................... YES
--  libpng library found..................... YES
--  libjasper library found.................. YES
--  liblcms library found.................... YES
--  Boost Graph library found................ YES
--  libkipi library found.................... YES
--  libkexiv2 library found.................. YES
--  libkdcraw library found.................. YES
--  libkface library found................... YES
--  libkgeomap library found................. YES
--  libpgf library found..................... NO  (optional - internal version used instead)
--  libclapack library found................. NO  (optional - internal version used instead)
--  libgphoto2 and libusb libraries found.... NO  (optional)
-- 
--  digiKam will be compiled without GPhoto2 support.
-- 
--  libkdepimlibs library found.............. NO  (optional)
-- 
--  digiKam will be compiled without address book support.
-- 
--  Nepomuk libraries found.................. YES (optional)
--  libglib2 library found................... NO  (optional)
-- 
--  digiKam will be compiled without liquid rescale and lens auto-correction tools.
-- 
--  Doxygen found............................ NO  (optional)
-- 
--  You will not be able to to generate the API documentation.
--  This does not affect building digiKam in any way.
-- 
--  digiKam can be compiled.................. YES
-- ----------------------------------------------------------------------------------
-- 
-- Adjusting compilation flags for GCC version ( 4.6.1 )
-- Configuring incomplete, errors occurred!


More information about the Digikam-devel mailing list