Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building Opencv 3 + contrib on ios: incomplete type 'cv::Mat'

Trying to build opencv3 with opencv_contrib for iOS (only keeping 'text' module there for simplicity but it doesn't really matter). And getting 20 errors like these

 error: incomplete type 'cv::Mat' named in nested name specifier
 inline Mat::Mat(const Mat& m)

 forward declaration of 'cv::Mat'
 class CV_EXPORTS Mat;

 error: incomplete type 'cv::Mat'
 named in nested name specifier
 inline Mat::Mat(Size _sz, int _type, void* _data, size_t _step)

I'm using build_framework.py script with '--contrib' param and path to opencv_contrib sources.

It successfully builds framework without contrib though.