Bug 332126

Summary: LibRaw_r_LIBRARIES CMake Error: The following variables are used in this project, but they are set to NOTFOUND
Product: [Applications] digikam Reporter: Kristian Karl <kristian.hermann.karl>
Component: Portability-CmakeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description Kristian Karl 2014-03-14 09:09:55 UTC
When building latest from source on Fedora 20, following error occurs when running ./bootstrap.linux

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LibRaw_r_LIBRARIES (ADVANCED)

The complete output:
[krikar@krikar-desktop digikam]$ rm -rf build/
[krikar@krikar-desktop digikam]$ ./bootstrap.linux 
./bootstrap.linux: line 10: qmake: command not found
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt-Version 4.8.5 (using /bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1e") 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: //bin/automoc4  
-- Found Perl: /bin/perl (found version "5.18.2") 
-- Found Phonon: /usr/include (Required is at least version "4.3.80") 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.12 include dir: /usr/include/kde4
-- Found KDE 4.12 library dir: /usr/lib64/kde4/devel
-- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: //bin/automoc4
-- /home/krikar/dev/kde/digikam/po/ dir do not exists. Translations compilation disabled...
-- You can use DIGIKAMSC_CHECKOUT_PO option to extract po files from KDE repositories.
-- Local kdegraphics libraries will be compiled... YES
-- Handbooks will be compiled..................... YES
-- Extract translations files..................... NO
-- Translations will be compiled.................. NO
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libksane
-- Found Sane: /usr/lib64/libsane.so  

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * SANE development toolkit - Scanner Access Now Easy (SANE) development package

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

-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkipi
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkexiv2
-- Found PkgConfig: /bin/pkg-config (found version "0.28") 
-- Found Exiv2: /usr/lib64/libexiv2.so (found suitable version "0.23.0", minimum required is "0.21") 

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * Exiv2 - Required to build libkexiv2.

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

-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkdcraw
-- checking for module 'libraw'
--   package 'libraw' not found
-- checking for module 'libraw_r'
--   package 'libraw_r' not found
-- Found LibRaw: /usr/lib/libraw.so (found suitable version "0.16.0", minimum required is "0.15") 
-- LibRaw version: 0.16.0
-- LibRaw config file exists: yes
-- 
-- The following OPTIONAL packages have been found:

 * Threads
 * OpenSSL
 * Perl
 * Sane
 * Exiv2 , "Required to build libkexiv2." , <http://www.exiv2.org>
   ""
 * PkgConfig

-- The following REQUIRED packages have been found:

 * X11
 * Qt4
 * Automoc4
 * Phonon (required version >= 4.3.80)
 * KDE4Internal
 * KDE4
 * LibRaw (required version >= 0.15) , library that provides image Raw file demosaicing , <http://www.libraw.org>
   Required to build libkdcraw

-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libmediawiki
-- checking for module 'QJson>=0.7'
--   found QJson, version 0.8.1
-- Found QJSON: /usr/lib64/libqjson.so (found suitable version "0.8.1", minimum required is "0.7") 

-----------------------------------------------------------------------------
-- 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.8.5 (using /bin/qmake-qt4)
-- Found X11: /usr/lib64/libX11.so
-- Found marble: /usr/include  
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkexiv2
-- kexiv2 found, the demo application will be compiled.
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkface
-- Found Qt-Version 4.8.5 (using /bin/qmake-qt4)
-- Found X11: /usr/lib64/libX11.so
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /lib64/OpenCV
-- OpenCV: Found version 2.4.7 (required: 2.4.5)
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: kipi-plugins
-- Kipi library version required : 2.0.0
-- Check Kipi library in local sub-folder...
-- Found Kipi library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkipi
-- Kipi library version: 2.1.0
-- Kipi library SO binary version: 11
-- libkipi: Found version 2.1.0 (required: 2.0.0)
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkexiv2
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.3") 
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.3") 
-- Check for Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkdcraw
-- libkdcraw: Found version 2.4.2 (required: 2.2.0)
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.1.0") 
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1") 
-- Found LibXslt: /usr/lib64/libxslt.so
-- Found OpenGL: /usr/lib64/libGL.so  
-- checking for one of the modules 'libgpod-1.0'
-- libgpod dir: 
-- libgpod lib: 
-- libgpod def: 
-- libgpod ver: 
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.30.3
-- Found Gdk: /usr/include/gdk-pixbuf-2.0  
-- Found GLIB2: /usr/lib64/libglib-2.0.so  
-- checking for module 'gobject-2.0'
--   found gobject-2.0, version 2.38.2
-- Found GOBJECT: /usr/lib64/libgobject-2.0.so;/usr/lib64/libgmodule-2.0.so;/usr/lib64/libgthread-2.0.so;/usr/lib64/libglib-2.0.so  
-- Found FLEX: /bin/flex (found version "2.5.37") 
-- Could NOT find BISON (missing:  BISON_EXECUTABLE) 
-- Found KdepimLibs: /lib64/cmake/KdepimLibs/KdepimLibsConfig.cmake  
-- Found QCA2: /usr/lib64/libqca.so  
-- Check for Ksane library in local sub-folder...
-- Found Ksane library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libksane
-- Check for KGeoMap library in local sub-folder...
-- Found KGeoMap library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkgeomap
-- Check Mediawiki library in local sub-folder...
-- Found Mediawiki library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libmediawiki
-- Check Vkontakte library in local sub-folder...
-- Found Vkontakte library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkvkontakte
-- Could NOT find required package HUpnpCore: <http://herqq.org>
-- Could NOT find required package HUpnpAv: <http://herqq.org>
-- Found ImageMagick: /usr/lib64/libMagickCore-6.Q16.so (found version "6.8.6-3") 
-- Boost hasn't been found yet. Looking...
-- Boost version: 1.54.0
-- GCC 4.5 or later detected. Enabling C++0x support in QTGSTREAMER_FLAGS.
-- Could NOT find QtKOAuth (missing:  QTKOAUTH_LIBRARIES QTKOAUTH_INCLUDE_DIR) 
-- libkgeomap: Found version 2.0.0
-- Found X11: /usr/lib64/libX11.so
-- CMake version: cmake version 2.8.12.2

-- CMake version (cleaned): cmake version 2.8.12.2

-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- 
-- ----------------------------------------------------------------------------------
--  kipi-plugins 4.0.0-beta4 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.................... YES (optional)
--  libxslt library found.................... YES (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........................ YES (optional)
--  libkdepim library found.................. YES (optional)
--  qca2 library found....................... YES (optional)
--  libkgeomap library found................. YES (optional)
--  libmediawiki library found............... YES (optional)
--  libkvkontakte library found.............. YES (optional)
--  libimagemagick library found............. YES (optional)
--  libqtgstreamer library found............. YES (optional)
--  QtKOAuth library found................... NO  (optional)
--  OpenMP library found..................... YES (optional)
--  libX11 library found..................... YES (optional)
--  libksane library found................... YES (optional)
--  Hupnp library found...................... NO  (optional - internal version used instead)
-- 
--  kipi-plugins will be compiled............ YES
--  Shwup will be compiled................... YES (optional)
--  YandexFotki will be compiled............. YES (optional)
--  HtmlExport will be compiled.............. YES (optional)
--  AdvancedSlideshow will be compiled....... YES (optional)
--  ImageViewer will be compiled............. YES (optional)
--  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)
--  GoogleDrive will be compiled............. YES (optional)
--  Dropbox 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................ YES (optional)
--  GPSSync will be compiled................. YES (optional)
--  Mediawiki will be compiled............... YES (optional)
--  Panorama will be compiled................ NO  (optional - Look README file for more details about dependencies)
--  VideoSlideshow will be compiled.......... YES (optional)
--  Wallpaper will be compiled............... NO  (optional - Look README file for more details about dependencies)
-- ----------------------------------------------------------------------------------
-- 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: digiKam
-- Kipi library version required : 2.0.0
-- Check Kipi library in local sub-folder...
-- Found Kipi library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkipi
-- Kipi library version: 2.1.0
-- libkipi: Found version 2.1.0 (required: 2.0.0)
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkexiv2
-- Check for Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkdcraw
-- Found Jasper: /usr/lib64/libjasper.so (found version "1.900.1") 
-- Check Kface library in local sub-folder...
-- Found Kface library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkface
-- Check for KGeoMap library in local sub-folder...
-- Found KGeoMap library in local sub-folder: /home/krikar/dev/kde/digikam/extra/libkgeomap
-- checking for module 'libpgf'
--   found libpgf, version 6.13.45
-- PGF_INCLUDE_DIRS     = /usr/include/libpgf
-- PGF_INCLUDEDIR       = /usr/include/libpgf
-- PGF_LIBRARIES        = pgf
-- PGF_LDFLAGS          = -lpgf
-- PGF_CFLAGS           = -I/usr/include/libpgf
-- PGF_VERSION          = 6.13.45
-- PGF_CODEC_VERSION_ID = 61345
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Boost version: 1.54.0
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is /lib64/OpenCV
-- libkdcraw: Found version 2.4.2 (required: 2.2.0)
-- Check for LCMS2 availability...
-- checking for module 'lcms2'
--   found lcms2, version 2.5
-- Found lcms version 2.05, /usr/lib64/liblcms2.so
-- Found LCMS2: /usr/lib64/liblcms2.so /usr/include
-- Paralelized PGF codec disabled...
-- Identified libjpeg version: 62
-- Found MySQL server executable at: /usr/libexec/mysqld
-- Found MySQL install_db executable at: /bin/mysql_install_db
-- libkgeomap: Found version 2.0.0
-- Found gphoto2: -lgphoto2_port -lm;-lgphoto2 -lm -lgphoto2_port -lm -lexif
-- Found LIBUSB: /usr/lib64/libusb.so  
-- checking for module 'lensfun'
--   found lensfun, version 0.2.7.0
-- Found LensFun: /usr/include/lensfun (found version "0.2.7.0") 
-- liblensfun: Found version 0.2.7.0 (required: 0.2.6.0)
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- Performing Test HAVE_LQR_0_4
-- Performing Test HAVE_LQR_0_4 - Success
-- Found Lqr-1: /usr/include/lqr-1  
-- Found Soprano: /usr/include (found suitable version "2.9.4", minimum required is "1.99") 
-- Found SharedDesktopOntologies: /usr/share/ontology (found suitable version "0.11.0", minimum required is "0.2") 
-- Found Doxygen: /bin/doxygen (found version "1.8.6") 
-- Found Sqlite2: /usr/lib64/libsqlite.so (found version "2.8.17") 
-- 
-- ----------------------------------------------------------------------------------
--  digiKam 4.0.0-beta4 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..................... YES (optional)
--  Eigen3 library found..................... YES (optional)
--  libgphoto2 and libusb libraries found.... YES (optional)
--  libgphoto2 2.5 library found............. YES (optional)
--  libkdepimlibs library found.............. YES (optional)
--  Nepomuk libraries found.................. YES (optional)
--  Liblqr-1 found........................... YES (optional)
--  Liblensfun found......................... YES (optional)
--  Libsqlite v2 found....................... YES (optional)
--  Doxygen found............................ YES (optional)
--  digiKam can be compiled.................. YES
-- ----------------------------------------------------------------------------------
-- 
-- Adjusting compilation flags for GCC version ( 4.8.2 )
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LibRaw_r_LIBRARIES (ADVANCED)
    linked by target "kdcraw" in directory /home/krikar/dev/kde/digikam/extra/libkdcraw/libkdcraw

-- Configuring incomplete, errors occurred!
See also "/home/krikar/dev/kde/digikam/build/CMakeFiles/CMakeOutput.log".
See also "/home/krikar/dev/kde/digikam/build/CMakeFiles/CMakeError.log".
Comment 1 caulier.gilles 2014-03-14 09:32:20 UTC
Look report :

-- Starting CMake configuration for: libkdcraw
-- checking for module 'libraw'
--   package 'libraw' not found
-- checking for module 'libraw_r'
--   package 'libraw_r' not found

Sound like binary package from libraw is not installed or cannot be found. In opposite, CMake found headers files (as developement package is installed) :

-- Found LibRaw: /usr/lib/libraw.so (found suitable version "0.16.0", minimum required is "0.15") 
-- LibRaw version: 0.16.0
-- LibRaw config file exists: yes

It's a possible Fedora packaging problem...

Gilles Caulier
Comment 2 caulier.gilles 2019-12-23 17:19:51 UTC
Not reproducible with digiKam 7.0.0-beta1.
Comment 3 Kristian Karl 2019-12-29 14:58:51 UTC
Not a problem anymore :-)