Compiling opencv samples: unknown cmake command ocv_check_dependencies

后端 未结 8 1112
余生分开走
余生分开走 2020-12-06 02:05

I am trying to build the OpenCV samples which come with the source package and I get the following:

CMake Error at CMakeLists.txt:10 (ocv_check_dependencies)         


        
8条回答
  •  遥遥无期
    2020-12-06 02:28

    How to compile OpenCV sample code ?

    # For OpenCV 3 
    cd /path/to/opencv/samples/cpp/
    #Compile
    g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect
    #run
    ./facedetect
    

    Works for me.

    googled from this link

提交回复
热议问题