Error when importing the iOS framework
Hello.
I downloaded the official version of iOS framework from the link on opencv.org.
I created a simple view-based XCODE project and added the opencv2.framework in the build phases menu.
Then I imported opencv2.framework as
#import "opencv2/opencv.hpp"in the *.pch file.
When I ran build, some error occurs like these:
/Users/wlee/Downloads/opencv2.framework/Versions/A/Headers/video/background_segm.hpp Unknown type name 'namespace' Expected ';' after top level declarator /Users/wlee/Downloads/opencv2.framework/Versions/A/Headers/objdetect/objdetect.hpp Unknown type name 'CvHaarFeature'
Did I do anything wrong ?
is there a precompiled framework of OpenCV for OSX? where I can download it?
No, we have framework only for iOS.