Summary: | build error: opencv_contrib is required but was not found | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Thomas Eschenbacher <Thomas.Eschenbacher> |
Component: | Portability-Cmake | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, swatilodha27 |
Priority: | NOR | ||
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.0.0 | |
Sentry Crash Report: |
Description
Thomas Eschenbacher
2016-03-03 06:48:28 UTC
Not reproducible. digiKam compile fine with OpenCV 3.1. If Contrib component is require by Cmake config script installed by OpenCV itself, well install the necessary package on your computer. (/usr/share/OpenCV/OpenCVConfig.cmake) It sound like a packaging problem as well. Gilles Caulier ok, thanks for the information! You mean that opencv_contrib stuff is really still included in the "opencv" package? (I thougt that stuff has been removed) In that case I will file a bug report against the gentoo package... Just for reference: https://bugs.gentoo.org/show_bug.cgi?id=576384 The contrib package is download at compilation time than OpenCV if i remember. Check Cmake config trace when you process OpenCV tarball... So i suspect that opencv have been compiled with it but packager forget to include contrib content in packaging process, or something like that. Note : OpenCV is a big puzzle. Gilles Caulier I have to re-open that topic. I found out that all that trouble was caused by digikam itself! The big bug is that the bootstrap.linux script contains the parameter -DENABLE_OPENCV3=OFF in the cmake command line, _HARD CODED_ !!! and _after_ including the user defineable parameter list ADDITIONAL_CMAKE_FLAGS. So adding -DENABLE_OPENCV3=ON to ADDITIONAL_CMAKE_FLAGS in bootstrap.local is pretty useless! Please fix the bootstrap.linux script to allow overriding _all_ the hardcoded settings and adjust the comments in bootstrap.local ! Propose a patch to use ADDITIONAL_CMAKE_FLAGS in bootstrap.linux. For ex, check if ADDITIONAL_CMAKE_FLAGS is empty. In this case use hardcoded flags, else use ADDITIONAL_CMAKE_FLAGS instead. Gilles Caulier Thomas, Did you seen my previous comment ? Gilles Caulier No response. If you want to disable ENABLE_OPENCV3 while configuring, just use sed to edit in packaging scripts the default value, as i do for OSX and Windows packaging. sed -e "s/ENABLE_OPENCV3=OFF/ENABLE_OPENCV3=ON/g" ./bootstrap.linux It's enough and work perfectly. There is no plan to extend bootstrap script as well. If you want this kind of feature, propose a patch as well. Gilles Caulier No response within one day? You guy seem to be really busy and impatient... Yes, I have seen your comment, but I have neither time nor motivation anymore to use a git version of digikam or to propose a path for that. Instead I will wait until digikam is in the official stable repo of my distribution and use that one. I'm able to reproduce this error. (Using KUbuntu 16.04) opencv and opencv_contrib are both installed on my system, yet I received this error while running bootstrap.linux file. -- First try at finding OpenCV... CMake Error at /usr/local/share/OpenCV/OpenCVConfig.cmake:232 (message): opencv_contrib is required but was not found Call Stack (most recent call first): core/cmake/modules/MacroOpenCV.cmake:27 (find_package) core/CMakeLists.txt:246 (DETECT_OPENCV) -- Configuring incomplete, errors occurred! See also "/home/swati/digikam-software-compilation/build/CMakeFiles/CMakeOutput.log". See also "/home/swati/digikam-software-compilation/build/CMakeFiles/CMakeError.log". OpenCV 2 or 3 is installed. There is a switch in bootstrap to use OpenCV 2 or 3 Gilles Use bootstrap opencv option to switch between 2 or 3. It work fine here... Gilles Caulier |