OpenCV:无法加载OpenCL运行时 [英] OpenCV: Failed to load OpenCL runtime
问题描述
我正在运行一个程序,在该程序中我的问题标题出现错误.我在此处找到了一个答案,建议从github下载OpenCV,然后使用ENABLE_OPENCL=OFF
进行编译(使用CMake),并针对应用程序使用内置的库.
I am running a program in which I got the error on the title of my question. I have found an answer here that suggests to download OpenCV from github, then compile with ENABLE_OPENCL=OFF
(using CMake) and use the built libs against the application.
或者有没有办法在程序本身中设置此标志而不修改OpenCV中的任何内容?
Or may be is there a way to set this flag in the program itself without modifying anything in OpenCV ?
我想知道是否有可能无需删除并重新安装OpenCV-3.0吗?
I wonder if it is possible to do that without having to remove and install again OpenCV-3.0 ?
推荐答案
我通过运行以下方法解决了该问题:
I resolved the problem by running:
sudo apt-get install ocl-icd-opencl-dev
这篇关于OpenCV:无法加载OpenCL运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!