linux - Could not find module FindOpenCV.cmake -
I'm connected to a virtual linux machine where I do not have any rights ... I (very good .... someone else has done all the work for me). Now I'm trying to run a simple code to show an image ANC compile it with cmake when I cm will bring I get CMake error CMakeLists.txt: 3 (find_package): module FindOpenCV.cmake or can not find a configuration file for the package OpenCV Could Adjust CMACE_MODULE_PATH to open OpenCV_DIR find FindOpenCV.cmake or adjusted in the directory containing the CMake configuration file for OpenCV. The file will have one of the following names: OpenCVConfig.cmake opencv-config.cmake - Incomplete configuring, errors occurred! I do not know how to tell CMake this environment so much I know where to find it ... Can you help me? Thanks Output from the installation cadenv opencv
#include
cmake_minimum_required (version 2.8) Project (DisplayImage) find_package (OpenCV required) add_executable (DisplayImage DisplayImage.cpp) target_link_libraries ( DisplayImage $ {OpenCV_LIBS})
Package OpenCV Release 2.4.8 has been installed. You can now: - Use the commands: opencv_createsamples, opencv_haartraining, opencv_performance and opencv_traincascade - to obtain information about the compiler /cadappl/opencv/2.4.8/lib/pkgconfig directory environment variable PKG_CONFIG_PATH and linker flags Use pkg-config and package name as the package 'opencv'. - Information about OpenCV from CMake files /cadappl/opencv/2.4.8/share/OpenCV/OpenCV*.cmake; - View sample source files in that folder using /cadappl/opencv/2.4.8/share/OpenCV/samples and its sub-C, CPP, GPU and OCL OpenCV. - Use OpenCV using /cadappl/opencv/2.4.8/share/OpenCV/java/opencv-248.jar Java 1.7.0 (/ usr / bin / java), shared on the library / cadappl / opencv /2.4 Required .8 / share / OpenCV / java / libopencv_java248 Note: All OpenCV 2.4.8 programs & amp; Libraries have been compiled with GNU C compiler 4.4.7 (/ usr / bin / gcc).
Comments
Post a Comment