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

Gert Kello gert.kello at gmail.com
Wed Dec 15 05:41:49 GMT 2010


> I hope this solves all the FindOpenCV issues for now. Please let me know
> whether it works, and thanks for trying it!

Almost. If I use "external opencv find" flag then kipi-plugins do not
find opencv:

-- CMake version (cleaned): cmake version 2.8.3

--
-- ----------------------------------------------------------------------------------
--  kipi-plugins 2.0.0-beta1 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.................. NO  (optional)

Maybe:
Index: extra/kipi-plugins/CMakeLists.txt
===================================================================
--- extra/kipi-plugins/CMakeLists.txt   (revision 1206613)
+++ extra/kipi-plugins/CMakeLists.txt   (working copy)
@@ -142,6 +142,12 @@
 MACRO_OPTIONAL_FIND_PACKAGE(OpenCV)     # For RemoveRedEyes.
 MACRO_OPTIONAL_FIND_PACKAGE(QJSON)      # For Debian Screenshots.

+IF (NOT OPENCV_FOUND)
+    IF (OpenCV_VERSION VERSION_GREATER "2.0.99")
+        SET(OPENCV_FOUND TRUE)
+    ENDIF (OpenCV_VERSION VERSION_GREATER "2.0.99")
+ENDIF (NOT OPENCV_FOUND)
+
 # X11 check, LINUX Only.
 IF(NOT WIN32 AND NOT APPLE)
     MACRO_OPTIONAL_FIND_PACKAGE(X11)   # For AdvancedSlideshow and ImageViewer.

Gert



More information about the Digikam-devel mailing list