2016-12-23: 1 year after 3.1 release and after the OpenCV core team has moved back to Intel we are pleased to announce OpenCV 3.2 release, with tons of improvements and bug fixes. 969 patches have been merged and 478 issues (bugs & feature requests) have been closed. http://opencv.org/opencv-3-2.html
*** Bug 612072 has been marked as a duplicate of this bug. ***
There is a known issue compiling 3.1 on macOS: http://answers.opencv.org/question/104463/errors-on-compiling-opencv-on-macos-sierra/ I had no problem using the ebuild for 3.1 with a couple tweaks. On prefix, it seems there is an issue in both 3.1 and 3.2 with OpenEXR, related to hardcoded include paths, and it would be nice to get that working.
(In reply to * from comment #2) > There is a known issue compiling 3.1 on macOS: > http://answers.opencv.org/question/104463/errors-on-compiling-opencv-on- > macos-sierra/ > > I had no problem using the ebuild for 3.1 with a couple tweaks. On prefix, > it seems there is an issue in both 3.1 and 3.2 with OpenEXR, related to > hardcoded include paths, and it would be nice to get that working. I do not have prefix so it is impossible for me to fix it but patches are of course welcome. As far as I can see it is upstream bug. So maybe ask upstream to fix it?
Yes that's probably an upstream bug. I'll attach the very slightly modified ebuild from 3.1 with an updated patch.
Created attachment 468230 [details] opencv-3.2.0.ebuild
Created attachment 468232 [details, diff] opencv-3.2.0-gles.patch
I am not sure how exactly you slightly modified the last ebuild but new ebuild for opencv-3.2.0 is a bit different.[1] If you wish to modify it for working on your prefix edit please this new ebuild and submit it. Thank you. [1]https://gitlab.com/Zelena/hell-overlay/blob/master/media-libs/opencv/opencv-3.2.0.ebuild
commit 07d392554c7c60474bba42bd03cf978572e62976 Author: Amy Liffey <amynka@gentoo.org> Date: Sun Apr 16 16:11:02 2017 +0200 media-libs/opencv: version bump 3.2.0 bug #604982