Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598674 - media-libs/opencv-3.1.0 does not build against dev-util/nvidia-cuda-toolkit-8.0.44
Summary: media-libs/opencv-3.1.0 does not build against dev-util/nvidia-cuda-toolkit-8...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL: https://github.com/opencv/opencv/comm...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-11-01 11:48 UTC by Sven Eden
Modified: 2016-11-11 10:45 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Disable GraphCut for CUDA 8+ (0001-GraphCut-deprecated-in-CUDA-7.5-and-removed-in-8.0.patch,653 bytes, patch)
2016-11-01 11:48 UTC, Sven Eden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Eden 2016-11-01 11:48:54 UTC
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.
Comment 1 Sven Eden 2016-11-02 09:53:46 UTC
For confirmation see:
https://github.com/opencv/opencv/issues/6677
Comment 2 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-02 11:33:11 UTC
(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. :)
Comment 3 Sven Eden 2016-11-02 11:37:33 UTC
(In reply to Jon from comment #2)
> This fix will be included in -r6 with other fixes. :)

Cool! Thank you very much!
Comment 4 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-03 20:06:50 UTC
(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.
Comment 5 Sven Eden 2016-11-04 08:31:40 UTC
(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.
--------
Comment 6 Sven Eden 2016-11-04 08:32:40 UTC
(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". ;-)
Comment 7 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-04 10:05:23 UTC
> 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. :)
Comment 8 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-11 10:45:31 UTC
Fixed in OpenCV 3.1.0-r6. Thanks for reporting. :)