Ask Your Question
0

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

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

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

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

Comments

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

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

Question Tools

1 follower

Stats

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

Seen: 628 times

Last updated: Feb 10 '16