Comment 70 for bug 885324

Revision history for this message
In , Anantapalani (anantapalani) wrote :

(In reply to comment #12)
> Ananta,
>
> thanks for feedback. I think Francesco need to see if lcms2 support compile and
> work fine under windows.
>
> For libkdcraw (bug 290157), i'm sure than libraw authors have already tested
> lcms2 support everywhere...
>
> Gilles Caulier

When running cmake on digikam-sc with lcms2, I get 2 errors.

1. When cmake examines the requirements of libkdcraw:

CMake Warning at extra/libkdcraw/CMakeLists.txt:110 (FIND_PACKAGE):
  Could not find module FindLCMS2.cmake or a configuration file for package
  LCMS2.

  Adjust CMAKE_MODULE_PATH to find FindLCMS2.cmake or set LCMS2_DIR to the
  directory containing a CMake configuration file for LCMS2. The file will
  have one of the following names:

    LCMS2Config.cmake
    lcms2-config.cmake

I do not get this problem when running cmake on libkdcraw. Also, if I copy FindLCMS2.cmake from digikam-sc/extra/libkdcraw/cmake/modules to digikam-sc/cmake/modules then it finds lcms2. How should CMakeLists.txt be adjusted to use the FindLCMS2.cmake from libkdcraw? Or, should it be permanently copied to digikam-sc/cmake/modules?

2. digikam cannot find lcms2 because there is no pkg-config, as Francesco expected:

CMake Error at r:/share/apps/cmake/modules/FindPkgConfig.cmake:323 (message):
  pkg-config tool not found
Call Stack (most recent call first):
  r:/share/apps/cmake/modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  core/CMakeLists.txt:171 (pkg_check_modules)

Maybe use FindLCMS2.cmake from libkdcraw, or a similar technique as it uses for WIN32?