Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv path fixing, help me , how to add path #42

Open
adhirmndl opened this issue Jul 7, 2019 · 6 comments
Open

opencv path fixing, help me , how to add path #42

adhirmndl opened this issue Jul 7, 2019 · 6 comments

Comments

@adhirmndl
Copy link

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:

OpenCVConfig.cmake
opencv-config.cmake

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)

@gttiankai
Copy link

the same problem

@tjh123321
Copy link

fuck problem

@adhirmndl
Copy link
Author

LOL :)

@tjh123321
Copy link

you need sdk

@deeplearning666
Copy link

在CMakeLists中添加如下语句:
SET(OpenCV_DIR /usr/local/share/OpenCV)
find_package(OpenCV REQUIRED)

@ShreyVDesai
Copy link

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

`//
#include<opencv2/opencv.hpp>
#include
#include

int main(int argc, char *argv[]) {

    cv::Mat image = cv::imread("img/img1p3.png");
    cv::namedWindow("Object");
    cv::imshow("Object",image);
    
    return(0);

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants