Created attachment 452076 [details, diff] Disable GraphCut for CUDA 8+ The reason is, that "GraphCut" was deprecated with CUDA-7.5 and eventually removed in CUDA-8.0. With the attached patch media-libs/opencv-3.1.0-r5 built and merged just fine.
For confirmation see: https://github.com/opencv/opencv/issues/6677
(In reply to Sven Eden from comment #1) > For confirmation see: > https://github.com/opencv/opencv/issues/6677 I already found the patch in upstream and confirmed it. This fix will be included in -r6 with other fixes. :)
(In reply to Jon from comment #2) > This fix will be included in -r6 with other fixes. :) Cool! Thank you very much!
(In reply to Sven Eden from comment #3) > (In reply to Jon from comment #2) > > This fix will be included in -r6 with other fixes. :) > > Cool! Thank you very much! I have a testing ebuild here if you want to try it. https://github.com/dracwyrm/gentoo-ebuilds/tree/master/media-libs/opencv Hopefully contains fixes for other bugs.
(In reply to Jon from comment #4) > I have a testing ebuild here if you want to try it. > https://github.com/dracwyrm/gentoo-ebuilds/tree/master/media-libs/opencv > > Hopefully contains fixes for other bugs. Apart from me having to download XX and YY by hand, because "ebuild manifest" refuses to download from github and insists on mirror downloads, the ebuild worked like a charm! -------- # ebuild opencv-3.1.0-r6.ebuild merge (...) >>> media-libs/opencv-3.1.0-r6 merged. --------
(In reply to Sven Eden from comment #5) > Apart from me having to download XX and YY by hand, because "ebuild Meaning "opencv-3.1.0.tar.gz" and "opencv-3.1.0_contrib-75b3ea9.tar.gz". ;-)
> Apart from me having to download XX and YY by hand, because "ebuild > manifest" refuses to download from github and insists on mirror downloads, > the ebuild worked like a charm! > > -------- > # ebuild opencv-3.1.0-r6.ebuild merge > (...) > >>> media-libs/opencv-3.1.0-r6 merged. > -------- I still need to test tesseract support to see if that's fixed among other things. Should be some depend fixes with contrib and even new glog and gflags support! Odd that it didn't download from GitHub when it didn't find the files on the Gentoo Mirrors. I'll look into that. Thanks for testing. :)
Fixed in OpenCV 3.1.0-r6. Thanks for reporting. :)