question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No ocl in Ubuntu 18.04

See original GitHub issue

opencv2/ocl/ocl.hpp: No such file or directory

No opencv2/ocl/ocl.hpp in /usr/include

No libopencv-ocl-dev in APT database

What should I do now?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

4reactions
revastcommented, Nov 17, 2018

I guess I know whats going on… butterflow is made with opencv 2.4x series, whereas in ubuntu 18.04, the default version is already 3.x series.

So you will have to install the 2.4.x tree from source, e.g out of the /usr tree, e.g in /opt/opencv, and then link the libraries and includes so that the butterflow installer is catching them up. or install it in /usr/local, build, then find out which libraries butterflow needs to run, and copy them to the program folder, and preload them with LD_LIBRARY_PATH… thats what I am gonna try next.

edit: https://launchpad.net/~jeff250/+archive/ubuntu/opencv provides latest 2.4.x for bionic

1reaction
revastcommented, Nov 17, 2018

me too, opencv2/core/ocl.hpp is where ocl seems to be gone, and there is also a https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/opencl folder in there…

changing that in ocl.cpp, I get

/media/vault/compiles/1!__butterfl0w/butterflow/butterflow/ocl.cpp:58:11: error: ‘DeviceInfo’ does not name a type; did you mean ‘devices’? const DeviceInfo& currentDevice = Context::getContext()->getDeviceInfo();

searching in openCV source code, I can only find references of this regarding cuda…

https://github.com/opencv/opencv/search?q=DeviceInfo&unscoped_q=DeviceInfo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preparing Ubuntu 18.04LTS as an OpenCL development ...
Preparing Ubuntu 18.04LTS as an OpenCL development platform, with a sample build target provided by Pyrit to demonstrate OpenCL ICD coexistence.
Read more >
How to install libOpenCL.so on ubuntu
It looks like libOpenCL.so is provided by the ocl-icd-opencl-dev package. To install this package, run: sudo apt update sudo apt install ...
Read more >
OCL-ICD implementation of OpenCL ICD loader
icd, libOpenCL.so will only load the ICD whose shared library name is wrote into the specified ".icd" file; If there is no slash...
Read more >
ocl-icd-dev_2.2.11-1ubuntu1_amd64.deb
Download ocl-icd-dev_2.2.11-1ubuntu1_amd64.deb for Ubuntu 18.04 LTS from Ubuntu Main repository.
Read more >
How To Install "ocl-icd-libopencl1" Package on Ubuntu
How to install ocl-icd-libopencl1 ubuntu package on Ubuntu 20.04/Ubuntu 18.04/Ubuntu ... Check the system logs to confirm that there are no related errors....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found