Skip to content
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

Mac OS compilation #10

Open
gbittoun opened this issue Apr 13, 2017 · 0 comments
Open

Mac OS compilation #10

gbittoun opened this issue Apr 13, 2017 · 0 comments

Comments

@gbittoun
Copy link

I tried to compile the samples on my Mac (OS X El Capitan version 10.11.6). By following the documentation, the cmake .. step worked fine but during compilation, I got the following error:

[ 91%] Generating include/KHR/khrplatform.h
Downloading KHR/khrplatform.h from http://www.khronos.org/registry/egl/api/KHR/khrplatform.h to /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/include/KHR/khrplatform.h
[ 92%] Generating include/GLES2/gl2.h, include/GLES2/gl2ext.h, include/GLES2/gl2platform.h
Downloading GLES2/gl2.h from http://www.khronos.org/registry/gles/api/GLES2/gl2.h to /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/include/GLES2/gl2.h
Downloading GLES2/gl2platform.h from http://www.khronos.org/registry/gles/api/GLES2/gl2platform.h to /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/include/GLES2/gl2platform.h
Downloading GLES2/gl2ext.h from http://www.khronos.org/registry/gles/api/GLES2/gl2ext.h to /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/include/GLES2/gl2ext.h
[ 92%] Generating src/glxw_es2.c, include/GLXW/glxw_es2.h
Parsing header gl2ext.h
Generating header /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/include/GLXW/glxw_es2.h
Generating library source /Users/gbittoun/Documents/OpenGL-Examples/build/glxw/src/glxw_es2.c
Scanning dependencies of target glxw_es2
[ 93%] Building C object glxw/CMakeFiles/glxw_es2.dir/src/glxw_es2.c.o
/Users/gbittoun/Documents/OpenGL-Examples/build/glxw/src/glxw_es2.c:3:10: fatal error: 'EGL/egl.h' file not found
#include <EGL/egl.h>
         ^
1 error generated.
make[2]: *** [glxw/CMakeFiles/glxw_es2.dir/src/glxw_es2.c.o] Error 1
make[1]: *** [glxw/CMakeFiles/glxw_es2.dir/all] Error 2
make: *** [all] Error 2

I looked for this egl.h file on my computer and it seems that it indeed doesn’t exist or at least, not in a directory named EGL. I could find it in the directory /opt/X11/include/GLES. I tried to copy it in the include dir of glxw… without success.

Is there a way to compile these examples on mac ? I don’t renounce to make them work, I’ll open a pull request if I find a correct way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant