'opencv2/opencv.hpp' file not found

后端 未结 2 1507
日久生厌
日久生厌 2021-01-12 05:16

I successfully installed OpenCV on Mac OS X 10.8.2.

After that I configured Xcode 4.5.2 by following this guide by SSteve even that this guide was for Xcode 3.5.1

2条回答
  •  有刺的猬
    2021-01-12 05:50

    Header Search Path: /usr/lib** (** stands for recursive search)

    It's definitely wrong. You should setup this path like:

    /usr/local/include/opencv2**
    

    or:

    /usr/include/opencv2**
    

    From your link:

    In the Search Paths section set Header Search Paths to /usr/local/include (/opt/local/include if you used MacPorts)

提交回复
热议问题