Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv IOS - MacTypes.h, ambiguous references

My previous question referred to linker errors - although the opencv2.framework is included, it does not find functions like the FeatureDetector::detect for example... well, it seems that this has to do with the order of includes... so rearranging the order of includes I end up with:

Reference to 'Ptr' ambiguous
Reference to 'Point' ambiguous
Reference to 'Rect' ambiguous

I don't get how I can come around this issue... someone in another forum suggested to #define the Ptr, Point and Rect, then include the system headers and then #undef them again... This resulted in exactly the same linker problems that I already had before...

Undefined symbols for architecture armv7:
"cv::FeatureDetector::detect(cv::Mat const&, std::vector<cv::KeyPoint, 
std::allocator<cv::KeyPoint> >&, cv::Mat const&) const", referenced from:
   detect(char const*, cv::Mat&, float, float) in 
libDetector.a(ObjectDetector.o)

Can someone tell me what is the real and correct way to fuse opencv with ios?