Open adhirmndl opened 5 years ago
the same problem
fuck problem
LOL :)
you need sdk
在CMakeLists中添加如下语句: SET(OpenCV_DIR /usr/local/share/OpenCV) find_package(OpenCV REQUIRED)
I did this but im not able to see any output
C make lists .txt
cmake_minimum_required(VERSION 3.0.0)
project(vidDisplay VERSION 0.1.0)
include(CTest)
enable_testing()
set(OpenCV_DIR C:/opencv-4.6.0/build)
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS})
add_executable(vidDisplay src/vidDisplay.cpp)
target_link_libraries( vidDisplay ${OpenCV_LIBS})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
vidDisplay.cpp
`//
int main(int argc, char *argv[]) {
cv::Mat image = cv::imread("img/img1p3.png");
cv::namedWindow("Object");
cv::imshow("Object",image);
return(0);
}`
CMake Error at CMakeLists.txt:68 (FIND_PACKAGE): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any of the following names:
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV" provides a separate development package or SDK, be sure it has been installed.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_CUDART_LIBRARY (ADVANCED) linked by target "sysDetectSpeed" in directory /home/adhir/caffe-yolov3 linked by target "detectnet" in directory /home/adhir/caffe-yolov3/detectnet CUDA_TOOLKIT_INCLUDE (ADVANCED)