opencv2/opencv.hpp file not found in Xcode

前端 未结 9 2056
悲哀的现实
悲哀的现实 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:24

    Here is my answer for this.

    1. Environment: XCode 8.1

    2. Download page: http://opencv.org/downloads.html. Choose any link for iOS.

    3. Important step: while downloading opencv2.framework, you must use ".zip" format, not ".framework" format, afterwards, unzip it to opencv2.framework. It is weird, but it should work. Meanwhile, you have to rename it to opencv2.framework if the unzipped one is not.

    4. just drag and drop the framework to your iOS project. No any settings are required. You could refer to this for testing : www.youtube.com/watch?v=ywUBHqxwM5Q.

提交回复
热议问题