Using OpenCV 2.4.0 in a Visual studio 2010 project

后端 未结 2 736
小鲜肉
小鲜肉 2021-01-15 23:33

I have asked a similar question on How to link and use OpenCV headers?, but no luck so far. So I decided to ask a new, more specific question.

Can someone tell me wh

2条回答
  •  半阙折子戏
    2021-01-15 23:51

    The folder structure of OpenCV has changed in 2.4, therefore you should use other folder than mentioned in the tutorial:

    • Point OPENCV_DIR to the build-directory (e.g. C:\opencv\build), NOT the platform-specific dir.
    • The Path-Variable must point to your platform-specific bin-directory (e.g. %OPENCV_DIR%\x86\vc10\bin)...
    • ...same for the Linker properties (e.g. $(OPENCV_DIR)\x86\vc10\lib)

提交回复
热议问题