CppRobotics icon indicating copy to clipboard operation
CppRobotics copied to clipboard

how to include the libraries eigen and opencv ?

Open EXPX3 opened this issue 3 years ago • 0 comments

Hi I am using Visual studio 17. I have created a folder called lib, where i have downloaded the source files of opencv and eigen. created the build folder and tried to run the cmake ../ command. But i am always getting the following error. CMake Error at CMakeLists.txt:16 (find_package): Could not find a package configuration file provided by "OpenCV" with any of the following names:

OpenCVConfig.cmake
opencv-config.cmake

I have used cmake-gui and build these two source files. Later i was able to choose a individual source file and modify its properties by providing path to the include and build folders. This let me execute the specific source file.

But i want to get it work with all the source files (various algorithms) without me modifying properties of individual files.

Can anyone help me point to right direction please. Thanks alot in advance!

EXPX3 avatar Jun 17 '22 20:06 EXPX3