KhronosGroup / KhronosGroup/OpenCL-Headers

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

Open
#186 2 comments 0 reactions 0 assignees View on GitHub
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:
![image](https://user-images.githubusercontent.com/80800417/142795408-7c1d584a-271d-4318-a327-132508ac50b1.png)

**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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.