Summary: | cmakelist.txt opencv-check broken | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | S. Burmeister <sven.burmeister> |
Component: | Portability-Cmake | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, dirk.kde, mike |
Priority: | NOR | ||
Version: | 2.0.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.0.0 | |
Sentry Crash Report: |
Description
S. Burmeister
2011-01-25 09:58:39 UTC
Does somebody know which commit broke this? It would be helpful to revert it and find a better solution. This one, from Michael (he is copy) : http://websvn.kde.org/?view=revision&revision=1201006 Gilles Caulier that commit is from november 2010. however it only started to fail building one or two weeks ago. Hi, actually the commit in question should be this one: http://websvn.kde.org/?view=revision&revision=1206536 Of course, we can change the behavior to first try the distro-provided FindOpenCV, and if that does not work, use the internally provided one. Michael A fallback in case nothing was found makes more sense IMHO. Sven, which distribution and version are you on? Everyone else who is listening and also has to specify -DKFACE_EXTERNAL_FINDOPENCV:BOOL=TRUE please let me know your distribution and its version. Michael When the compiling broke I was on openSUSE 11.3 and KDE 4.5. Compiling worked perfectly regarding opncv before the change. In the meantime I updated to KDE 4.6. The autoamtic packaging on opensuse's buildserver also failed because of this change. Why not use the old way and simply fall back to the new one if it returns an empty path? Why did that working system have to be broken and not just a fallback added? Thanks for the info. I'll try to implement a fallback mechanism. Michael SVN commit 1217507 by mghansen: Implement a fallback mechanism for OpenCV detection: If FIND_PACKAGE(OpenCV) can not find OpenCV, try to find it again using another version of FindOpenCV.cmake which is shipped with libkface and can still find OpenCV on some systems. Tested under debian sid: Normal installation of OpenCV via apt-get: OpenCV is found at the first try. Remove /usr/share/opencv/OpenCVConfig.cmake: First try fails, but the FindOpenCV.cmake shipped with libkface still finds OpenCV at the second try. If no OpenCV is installed at all, CMake stops after the second attempt, as it should be. CCBUG: 264231 M +0 -7 CMakeLists.txt M +4 -8 README M +19 -6 extra/libkface/CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=1217507 Seems to work on openSUSE 11.3 as well. Thanks a lot! Good to hear ;-) IIRC the FindOpenCV.cmake that we ship was mostly required under Windows, so maybe somebody could give it a try there, too? Michael Tested under windows. all work fine. Gilles Caulier While testing OpenCV against beta6 I discovered a bug in the OpenCV cmake build files that will is now fixed in the 2.3 branch of OpenCV and the trunk: https://code.ros.org/trac/opencv/ticket/1168 Maybe that will improve finding OpenCV in the future. |