-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cl.h not found? #156
Comments
See https://github.com/KhronosGroup/OpenCL-ICD-Loader/blob/master/inc/README.txt:
|
I think you can also override the CMake variable |
This would be an excellent place to make use of CMake |
It just seems strange that the CTS build looks for, and tells me when it can't find the OpenCL headers, but this build doesn't. |
After a fresh clone, if I cd into OpenCL-ICD-Loader, and run
mkdir build
cd build
cmake ..
No problems. But if I then
make
it stops immediately with
Scanning dependencies of target OpenCL
[ 3%] Building C object CMakeFiles/OpenCL.dir/loader/icd.c.o
In file included from /khronos/github/OpenCL-ICD-Loader/loader/icd.c:19:
/khronos/github/OpenCL-ICD-Loader/loader/icd.h:36:10: fatal error: CL/cl.h: No such file or directory
36 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/OpenCL.dir/build.make:82: CMakeFiles/OpenCL.dir/loader/icd.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:764: CMakeFiles/OpenCL.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Shouldn't I have to tell the build where the OpenCL headers are?
The text was updated successfully, but these errors were encountered: