First time here? Check out the FAQ!

Ask Your Question
0

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

asked Feb 7 '16

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

It successfully builds framework without contrib though.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Feb 10 '16

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.

Preview: (hide)

Comments

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

berak gravatar imageberak (Feb 10 '16)edit

Question Tools

1 follower

Stats

Asked: Feb 7 '16

Seen: 632 times

Last updated: Feb 10 '16