Sunday, 2 November 2014

Opencv project compiling error after updated to Yosemite Mac

Before the update, I have several opencv projects and they are working fine.

But I got compiling error after Yosemite updating.

I have some work around but still not able to fix it:

1. remove useless #include. for example if objdetect package is not needed, please do not reference it, Because after the upgrading, this package will request more packages and they will cause error.  (opencv2/flann/lsh_table.h 'unordered_map' file not found)

2. don't use #include cv.h  reference the .h which you really need.

3. the include path should link to the imgproc/include folder instead of imgproc/include/opencv/improc/

No comments:

Post a comment