opencv2/opencv.hpp file not found in Xcode

前端 未结 9 2091
悲哀的现实
悲哀的现实 2020-12-30 10:14

I have built openCV to get opencv2.framework. I added this to my xcode iOS project by going to \"build phases->Link Binary With Libraries\", then tried to include \"opencv2

9条回答
  •  余生分开走
    2020-12-30 10:31

    In my case the symbolic links to the header files were broken. This was caused by cloning the following great example project:

    https://github.com/BloodAxe/OpenCV-Tutorial

    In the cloned project, the header files were not reachable anymore. After reimporting the opencv2.framework from the official opencv ios download site (OpenCV for iOS), the headers were available again. XCode should look as follows:

    The following is a screenshot of a Xcode project with broken headers. With broken header files, the xcode project looks as follows:

提交回复
热议问题