728x90
반응형

 

 

 

Yolo v3 + TensorRT 프로젝트 CMAKE 하다가 난 에러 

 

CMake Error at CMakeLists.txt:15 (find_package): Could not find module FindOpenCV.cmake or a configuration file for package OpenCV. Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the directory containing a CMake configuration file for OpenCV. The file will have one of the following names:

 

OpenCVConfig.cmake

opencv-config.cmake

 

 

 

 

 

 

 

opencv path 를 찾지 못해서 나는 오류이다 

opencv 가 포함되어있는 곳의 build path를 추가해준다

$ export OpenCV_DIR=<path_of_opencv>

 

필자는 /workspace/opencv/opencv-3.2.0/build 경로에 있기 때문에 다음과 같이 설정하였다. 

$ export OpenCV_DIR=/workspace/opencv/opencv-3.2.0/build

 

 

 

 

참고자료 : https://stackoverflow.com/questions/8711109/could-not-find-module-findopencv-cmake-error-in-configuration-process/16959771

 

Could not find module FindOpenCV.cmake ( Error in configuration process)

I wrote a CMakeLists.txt for a project in C++, which uses OpenCV libraries. When I try to create the project using cmake, I get the next configuration problem: CMake Error at CMakeLists.txt:15 (

stackoverflow.com

 

728x90
반응형