[Digikam-devel] Re: [Kde-imaging] Re: Re: Git migration for 2.0.0 + code components re-structuring...

Gert Kello gert.kello at gmail.com
Mon Dec 13 16:03:27 GMT 2010


>>> I like this structure and will try to test it later. Maybe we should
>>> also add a README to the root directory?
>>
>> I checked out the new structure and tried to compile it. I first
>> uninstalled libkmap, libkface and libkdcraw which used to be compiled
>> separately. Then the build failed:
>
> I modified the FindXXX.cmake files to find the local versions, now the
> build works fine for me. The FindKdcraw.cmake file is a copy of the one
> from kdelibs, which should be merged back at some point.

I get several CMake warnings like
-- Configuring done
CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:933
(add_executable):
  Cannot generate a safe linker search path for target libkmap_demo because
  there is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]
    dir 1 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 2 must precede it due to link library [libkexiv2.dll.a]
    dir 2 is [c:/KDE/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]
    dir 3 is [C:/kde/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  extra/libkmap/demo/CMakeLists.txt:37 (KDE4_ADD_EXECUTABLE)

It seems "funny" that some of those libs are found from c:/KDE/lib,
they are all built together and installed only later. Aren't they?

Perhaps it is because the "find*.cmake" do not take account that
libraries have moved from "libs" subfolder into "extra" one? Patch to
find "extra" ones also included for some libs. If the way to jadnle
this is good I can make patch for other libs also.

Gert
-------------- next part --------------
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: c:/MinGW32/bin/gcc.exe
-- Check for working C compiler: c:/MinGW32/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: c:/MinGW32/bin/g++.exe
-- Check for working CXX compiler: c:/MinGW32/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - 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.6.2 (using c:/KDE/bin/qmake.exe)
-- Found Automoc4: C:/KDE/bin/automoc4.exe 
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found Phonon: c:/KDE/lib/libphonon.dll.a
-- Found Phonon Includes: c:/KDE/include/KDE;c:/KDE/include
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- 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.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found Exiv2: c:/KDE/lib/libexiv2.dll.a
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkdcraw
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found lcms version 1.18, c:/KDE/lib/liblcms-1.dll.a
-- 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 
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkface
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- External libface was not found, use internal version instead...
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkmap
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found Marble: c:/KDE/lib/libmarblewidget.dll.a
-- Check Kexiv2 library in local sub-folder...
-- Found libkexiv2: c:/KDE/lib/libkexiv2.dll.a
-- kexiv2 found, the demo application will be compiled.
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: kipi-plugins
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found Kexiv2 library in cache: c:/KDE/lib/libkexiv2.dll.a
-- Check Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: C:/KdeDevel/GoSC2010/digikam/extra/libkdcraw
-- Check Kipi library in local sub-folder...
-- Found libkipi: c:/KDE/lib/libkipi.dll.a
-- Check Kmap library in local sub-folder...
-- Found Kmap library in local sub-folder: C:/KdeDevel/GoSC2010/digikam/extra/libkmap
-- Found JPEG: c:/KDE/lib/libjpeg.dll.a 
-- Found ZLIB: c:/KDE/include (found version "1.2.3")
-- Found PNG: c:/KDE/lib/libpng12.dll.a 
-- Found TIFF: c:/KDE/lib/libtiff3.dll.a 
-- Found EXPAT: c:/KDE/lib/libexpat.dll.a 
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - 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 LibXml2: c:/KDE/lib/libxml2.dll.a 
-- Found LibXslt: c:/KDE/lib/libxslt.dll.a
-- Could NOT find Gdk (missing:  GDK_INCLUDE_DIR GDK_LIBRARIES) 
-- Found GLIB2: c:/KDE/lib/libglib-2.0.dll.a 
-- Found GObject libraries: c:/KDE/lib/libgobject-2.0.dll.a;c:/KDE/lib/libgmodule-2.0.dll.a;c:/KDE/lib/libgthread-2.0.dll.a;c:/KDE/lib/libglib-2.0.dll.a
-- Found GObject includes : c:/KDE/include/glib-2.0/gobject
-- Found KdepimLibs: c:/KDE/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake 
-- Found QCA2: c:/KDE/lib/libqca.dll.a 
-- Found libksane: c:/KDE/lib/libksane.dll.a
-- Could NOT find QJSON (missing:  QJSON_LIBRARIES QJSON_INCLUDE_DIR) 
-- CMake version: cmake version 2.8.3

-- CMake version (cleaned): cmake version 2.8.3

-- 
-- ----------------------------------------------------------------------------------
--  kipi-plugins 2.0.0-GoSC2010 dependencies results   <http://www.kipi-plugins.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
--  libkmap 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...................... NO  (optional)
--  libgpod library found.................... NO  (optional)
--  Gdk library found........................ NO  (optional)
--  libkdepim library found.................. YES (optional)
--  qca2 library found....................... YES (optional)
--  OpenMP library found..................... YES (optional)
--  libksane library found................... YES (optional)
-- 
--  kipi-plugins will be compiled............ YES
--  Shwup 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...... NO  (optional - Look README file for more details about dependencies)
--  IpodExport will be compiled.............. NO  (optional - Look README file for more details about dependencies)
--  Calendar will be compiled................ YES (optional)
-- ----------------------------------------------------------------------------------
-- 
-- Unable to find a related icon for target hdrgui - application will not have an application icon!
-- Unable to find a related icon for target scangui - application will not have an application icon!
-- 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
-- Found Qt-Version 4.6.2 (using c:/KDE/bin/qmake.exe)
-- Could NOT find Perl (missing:  PERL_EXECUTABLE) 
-- Perl not found
-- Phonon Version: 4.3.80
-- Found KDEWin library: c:/KDE/lib/libkdewin.dll.a
-- Found KDE 4.4 include dir: c:/KDE/include
-- Found KDE 4.4 library dir: c:/KDE/lib
-- Found the KDE4 kconfig_compiler preprocessor: c:/KDE/bin/kconfig_compiler.exe
-- Found automoc4: C:/KDE/bin/automoc4.exe
-- Found lcms version 1.18, c:/KDE/lib/liblcms-1.dll.a
-- Found Jasper: c:/KDE/lib/libjasper.dll.a 
-- Check Kdcraw library in local sub-folder...
-- Found Kdcraw library in local sub-folder: C:/KdeDevel/GoSC2010/digikam/extra/libkdcraw
-- Found Kexiv2 library in cache: c:/KDE/lib/libkexiv2.dll.a
-- Found Kipi library in cache: c:/KDE/lib/libkipi.dll.a
-- Check Kface library in local sub-folder...
-- Found Kface library in local sub-folder: C:/KdeDevel/GoSC2010/digikam/extra/libkface
-- Check Kmap library in local sub-folder...
-- Found Kmap library in local sub-folder: C:/KdeDevel/GoSC2010/digikam/extra/libkmap
-- Could NOT find any working clapack installation
-- Boost version: 1.37.0
CMake Warning (dev) at core/CMakeLists.txt:160 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "Qt4::QtScript" which is not built
  by this project.

  CMake does not support this but it used to work accidentally and is being
  allowed for compatibility.

  Policy CMP0016 is not set: target_link_libraries() reports error if only
  argument is not a target.  Run "cmake --help-policy CMP0016" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Identified libjpeg version: 62
-- Found MySQL server executable at: c:/KDE/bin/mysqld.exe
-- Found MySQL install_db executable at: INITCMD_MYSQL-NOTFOUND
-- Could NOT find LensFun (missing:  LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES) 
-- Could NOT find Lqr-1 (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES) 
-- Found Doxygen: c:/KDE/bin/doxygen.exe 
-- 
-- ----------------------------------------------------------------------------------
--  digiKam 2.0.0-GSoC2010 dependencies results   <http://www.digikam.org>
-- 
--  Qt4 SQL module found..................... YES
--  Qt4 SCRIPT module found.................. YES
--  Qt4 SCRIPTTOOLS module found............. YES
--  MySQL Server 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
--  libkmap library found.................... YES
--  libpgf library found..................... NO  (optional - internal version used instead)
--  libclapack library found................. NO  (optional - internal version used instead)
--  libgphoto2 library found................. NO  (optional)
-- 
--  digiKam will be compiled without GPhoto2 support.
-- 
--  libkdepimlibs library found.............. YES (optional)
--  Nepomuk libraries found.................. NO  (optional)
-- 
--  digiKam will be compiled without support for the Nepomuk semantic desktop services.
-- 
--  libglib2 library found................... YES (optional)
--  liblqr-1 library found................... NO  (optional - internal version used instead)
--  liblensfun library found................. NO  (optional - internal version used instead)
--  Doxygen found............................ YES (optional)
--  digiKam can be compiled.................. YES
-- ----------------------------------------------------------------------------------
-- 
-- Adjusting compilation flags for GCC version ( 4.5.1 )
-- Configuring done
CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:933 (add_executable):
  Cannot generate a safe linker search path for target libkmap_demo because
  there is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]
    dir 1 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 2 must precede it due to link library [libkexiv2.dll.a]
    dir 2 is [c:/KDE/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]
    dir 3 is [C:/kde/lib]
      dir 1 must precede it due to link library [libkmap.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  extra/libkmap/demo/CMakeLists.txt:37 (KDE4_ADD_EXECUTABLE)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:933 (add_executable):
  Cannot generate a safe linker search path for target testlensfuniface
  because there is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]
    dir 1 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 2 must precede it due to link library [libkexiv2.dll.a]
    dir 2 is [c:/KDE/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]
    dir 3 is [C:/kde/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/libs/dimg/filters/lens/CMakeLists.txt:26 (KDE4_ADD_EXECUTABLE)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:933 (add_executable):
  Cannot generate a safe linker search path for target digikam because there
  is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]
    dir 1 is [c:/KDE/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]
    dir 2 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 1 must precede it due to link library [libkipi.dll.a]
    dir 3 is [C:/kde/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/digikam/CMakeLists.txt:240 (KDE4_ADD_EXECUTABLE)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:982 (add_library):
  Cannot generate a safe linker search path for target digikamcore because
  there is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]
    dir 1 is [c:/KDE/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]
    dir 2 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 1 must precede it due to link library [libkexiv2.dll.a]
    dir 3 is [C:/kde/lib]
      dir 2 must precede it due to link library [libkdcraw.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/digikam/CMakeLists.txt:64 (KDE4_ADD_LIBRARY)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:982 (add_library):
  Cannot generate a safe linker search path for target digikamdatabase
  because there is a cycle in the constraint graph:

    dir 0 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 2 must precede it due to link library [libkexiv2.dll.a]
    dir 1 is [C:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 2 is [c:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 3 is [C:/kde/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/digikam/CMakeLists.txt:144 (KDE4_ADD_LIBRARY)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:933 (add_executable):
  Cannot generate a safe linker search path for target showfoto because there
  is a cycle in the constraint graph:

    dir 0 is [C:/KDE/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]
    dir 1 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 2 must precede it due to link library [libkexiv2.dll.a]
    dir 2 is [c:/KDE/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]
    dir 3 is [C:/kde/lib]
      dir 1 must precede it due to link library [libdigikamlib.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/showfoto/CMakeLists.txt:24 (KDE4_ADD_EXECUTABLE)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:626 (add_library):
  Cannot generate a safe linker search path for target
  digikamimageplugin_color because there is a cycle in the constraint graph:

    dir 0 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 1 must precede it due to link library [libkexiv2.dll.a]
    dir 1 is [c:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 2 is [C:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 3 is [C:/kde/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/imageplugins/color/CMakeLists.txt:16 (KDE4_ADD_PLUGIN)


CMake Warning at c:/KDE/share/apps/cmake/modules/KDE4Macros.cmake:626 (add_library):
  Cannot generate a safe linker search path for target
  digikamimageplugin_enhance because there is a cycle in the constraint
  graph:

    dir 0 is [C:/KdeDevel/GoSC2010/digikam/build/bin]
      dir 1 must precede it due to link library [libkexiv2.dll.a]
    dir 1 is [c:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 2 is [C:/KDE/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]
    dir 3 is [C:/kde/lib]
      dir 0 must precede it due to link library [libdigikamlib.dll.a]

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  core/imageplugins/enhance/CMakeLists.txt:24 (KDE4_ADD_PLUGIN)


-- Generating done
-- Build files have been written to: C:/KdeDevel/GoSC2010/digikam/build
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmakefindfix.diff
Type: application/octet-stream
Size: 2803 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101213/36756d30/attachment.obj>


More information about the Digikam-devel mailing list