OpenCL-Headers icon indicating copy to clipboard operation
OpenCL-Headers copied to clipboard

Why cannot find <CL\opencl.h> when using Android NDK Building?

Open FdyCN opened this issue 4 years ago • 2 comments

Hi guys, i got a problem. when I include opencl.hpp in my project. BUT, when i build executable for android 64 os using NDK. Here comes a compiling error, happened at this line: image

my ndk version is : r22b /Users/admin/Desktop/Demo/third_party/CL/opencl.hpp:530:10: fatal error: 'CL/opencl.h' file not found #include <CL/opencl.h> i wonder why it's wrong? is there no matched head in target platform? and how can i fix it?

Please help me and thanks a lot!

FdyCN avatar Nov 22 '21 03:11 FdyCN

AFAIK Android officially does not support OpenCL so that header probably is not part of the NDK.

jansol avatar Jan 25 '24 18:01 jansol