JoeHowse / iOSWithOpenCV

These are the projects for my book, iOS Application Development with OpenCV 3.
https://www.packtpub.com/application-development/ios-application-development-opencv
54 stars 18 forks source link

opencv2.framework does not work...! #5

Closed areslui closed 7 years ago

areslui commented 7 years ago

Followed the instruction and download the framework but it does not work. None any headers in this file.

screen shot 2017-05-10 at 1 54 42 pm

this one is working fine, but it is opencv2 version and does not has SFM module inside.

screen shot 2017-05-10 at 1 54 11 pm

Could you please tell me what am I doing wrong? Thanks

JoeHowse commented 7 years ago

Hi, @areslui. My opencv2.framework build from this repository does contain headers, and so does the latest opencv2.framework file (currently, version 3.2.0) from http://opencv.org/releases.html.

The version really is OpenCV 3. The name "opencv2" in the filename and headers doesn't refer to the OpenCV version number. It just means that this is the new C++ API and not the old C API.

See https://github.com/JoeHowse/iOSWithOpenCV/releases for notes about the version number and modules of my opencv2.framework build. This build should contain everything you need for the projects in this repository. It seems that you have a different project that may require a different version and different modules, so you will need to make your own custom build of opencv2.framework.

theoknock commented 7 years ago

I can verify that the version Joe uses is 3.x; but, like you, I could not install OpenCV in my own projects any other way but with CocoaPods; and, only then, after opening the project in the workspace file created by CocoaPods AND after appending an extra "m" to each implementation file using an OpenCV function.

theoknock commented 7 years ago

By the way, the #include headers will be different as well.

areslui commented 7 years ago

Thank you for your explanation.