OpenCV - missing dlls?

前端 未结 4 1121
灰色年华
灰色年华 2021-01-26 09:54

I am a beginner learning OpenCV. I have the latest version (2.4.7.2 as of Dec, 2013) and am trying a simple code to load image. The code is OK, but when I compiled and then run

4条回答
  •  执笔经年
    2021-01-26 10:36

    Make sure your environment variables are set properly (i.e., Path should have ../opencv/bin/) and then use these lines in your CMakeList file to generate the appropriate project files.

    FIND_PACKAGE( OpenCV REQUIRED )
    TARGET_LINK_LIBRARIES( myProject ${OpenCV_LIBS} )
    

提交回复
热议问题