KhronosGroup / KhronosGroup/OpenCL-Headers
Why cannot find <CL\opencl.h> when using Android NDK Building?
- Dominant language
- C
- Stars
- 766
- Forks
- 273
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 3
Description
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:

**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
`
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!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the reported include in third_party/CL/opencl.hpp:530 and inspect the Android NDK r22b include paths for the target Android 64-bit build. Determine whether CL/opencl.h is supplied or otherwise expected by this project; done means the build can resolve that header without the reported fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100