FS#36076 - [opencv] OpenCL module ocl is missing

Attached to Project: Arch Linux
Opened by Ofir (numeral) - Monday, 08 July 2013, 17:27 GMT
Last edited by Ray Rashif (schivmeister) - Thursday, 10 October 2013, 10:57 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ray Rashif (schivmeister)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
OpenCV's build fails to find OpenCL even if you have opencl-headers and libcl installed (no /usr/lib/opencv_ocl.so.2.4)

Additional info:
pkgver: 2.4.6
pkgrel: 1
This task depends upon

Closed by  Ray Rashif (schivmeister)
Thursday, 10 October 2013, 10:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  No serious objection has been raised upstream regarding the workaround. They will take more time to fix it for real, if they ever get to it.
Comment by Ray Rashif (schivmeister) - Monday, 08 July 2013, 17:43 GMT
  • Field changed: Summary (OpenCV 2.4.6 fails to build with OpenCL support. (no /usr/lib/opencv_ocl.so.2.4) → [opencv] 2.4.6 fails to build with OpenCL support. (no /usr/lib/opencv_ocl.so.2.4))
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Field changed: Severity (Medium → Low)
  • Task assigned to Ray Rashif (schivmeister)
Some more info: It appears upstream made some changes in cmake/OpenCVDetectOpenCL.cmake, which prevent opencl from being detected. Will file a ticket upstream.
Comment by Ray Rashif (schivmeister) - Tuesday, 09 July 2013, 21:26 GMT
  • Field changed: Summary ([opencv] 2.4.6 fails to build with OpenCL support. (no /usr/lib/opencv_ocl.so.2.4) → [opencv] OpenCL module ocl is missing)
  • Field changed: Details
Already reported upstream by a fellow Archer:

http://code.opencv.org/issues/3140
Comment by Ray Rashif (schivmeister) - Friday, 12 July 2013, 14:02 GMT
I have decided to go ahead and revert the offending commit, [1] as it is Ubuntu-specific (and upstream will not attend to this soon enough). I will keep this bug open, but please test .1 in [extra] and confirm that opencl support is working as expected.

[1] https://github.com/Itseez/opencv/commit/108bb81/OpenCVDetectOpenCL.cmake
Comment by Ofir (numeral) - Friday, 12 July 2013, 15:01 GMT
Works for me now, thanks schiv
Comment by Hartmut Seichter (seichterh) - Friday, 12 July 2013, 15:06 GMT
Strike that. OpenCL module is there now, can be linked to as usual, but it doesn't work. This might be upstream again. Have to test a selfcompiled version first to confirm.
Comment by Hartmut Seichter (seichterh) - Friday, 12 July 2013, 15:26 GMT
So, just for reference: seems there is a new bug in PyrLKOpticalFlow (hangs). Other parts I tried, such as warping etc. pp. work with the 2.4.6.1-1 package. Hence, the bug is upstream. Will investigate that more and report also upstream. Thanks a lot schiv!
Comment by Ray Rashif (schivmeister) - Friday, 12 July 2013, 17:19 GMT
You're welcome, guys. Anyway, for troubleshooting functionality I'd recommend getting a development copy of the code, e.g. direct from Github. [1]

[1] https://github.com/Itseez/opencv

Loading...