No ocl in Ubuntu 18.04
See original GitHub issueopencv2/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:
- Created 5 years ago
- Reactions:3
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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