Ask Your Question

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

asked 2016-02-07 13:17:36 -0500

golopup gravatar image

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 script with '--contrib' param and path to opencv_contrib sources.

It successfully builds framework without contrib though.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-10 08:21:40 -0500

golopup gravatar image

Thanks to this post I figured that I had opencv2.4 installed (with homebrew) and it was messing everything up.

Removing it fixed my issue.

edit flag offensive delete link more


^^ thanks for coming back, and resolve this puzzle ;)

berak gravatar imageberak ( 2016-02-10 08:29:20 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-07 13:16:30 -0500

Seen: 461 times

Last updated: Feb 10 '16