onlytailei / CppRobotics

cpp implementation of robotics algorithms including localization, mapping, SLAM, path planning and control
MIT License
1.83k stars 490 forks source link

how to include the libraries eigen and opencv ? #11

Open Robotgir opened 2 years ago

Robotgir commented 2 years ago

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!