OpenGL-Examples icon indicating copy to clipboard operation
OpenGL-Examples copied to clipboard

Compile error happens on MacOS

Open ZuyingWo opened this issue 6 years ago • 1 comments

fatal error: 'KHR/khrplatform.h' file not found

build$ make Scanning dependencies of target glxw [ 1%] Building C object glxw/CMakeFiles/glxw.dir/src/glxw.c.o In file included from /Users/anonymous/git/OpenGL/OpenGL-Examples/build/glxw/src/glxw.c:1: In file included from /Users/anonymous/git/OpenGL/OpenGL-Examples/build/glxw/include/GLXW/glxw.h:7: /Users/anonymous/git/OpenGL/OpenGL-Examples/build/glxw/include/GL/glcorearb.h:82:10: fatal error: 'KHR/khrplatform.h' file not found #include <KHR/khrplatform.h> ^~~~~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [glxw/CMakeFiles/glxw.dir/src/glxw.c.o] Error 1 make[1]: *** [glxw/CMakeFiles/glxw.dir/all] Error 2 make: *** [all] Error 2

ZuyingWo avatar May 21 '19 04:05 ZuyingWo

Just for reference.

python2.7 ../glxw/glxw_gen.py --api khr --output ./glxw/ python2.7 ../glxw/glxw_gen.py --api egl --output ./glxw/

==== If you want to build it on the latest repo, check here. https://github.com/ZuyingWo/OpenGL-Examples

ZuyingWo avatar May 21 '19 04:05 ZuyingWo