Home:ALL Converter>Build AliceVision with dependency to OpenCV

Build AliceVision with dependency to OpenCV

Ask Time:2020-03-08T03:18:10         Author:akuzminykh

Json Formatter

I'm trying to build AliceVision via CMake for Visual Studio. Now when I set the variable ALICEVISION_USE_OPENCV I get the following error message when configuring via cmake-gui:

CMake Warning at C:/vcpkg/scripts/buildsystems/vcpkg.cmake:263 (_find_package):
  Found package configuration file:

    C:/vcpkg/installed/x64-windows/share/opencv/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.
Call Stack (most recent call first):
  src/CMakeLists.txt:499 (find_package)


CMake Error at src/CMakeLists.txt:515 (message):
  Failed to find OpenCV.

I have OpenCV installed through vcpkg. I cannot figure out what the problem is or how to solve it. I've tried to set the flag to 1 at some places manually but it doesn't help.

Author:akuzminykh,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60581347/build-alicevision-with-dependency-to-opencv
yy