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

Bulld not working on Mac due to error in "glad.h" #29

Open
RainerXE opened this issue Jan 2, 2025 · 0 comments
Open

Bulld not working on Mac due to error in "glad.h" #29

RainerXE opened this issue Jan 2, 2025 · 0 comments

Comments

@RainerXE
Copy link

RainerXE commented Jan 2, 2025

To follow standard via "install-macos.h." The following error showed up at the gcc command:
"In file included from vendor/glad/src/glad.c:25:
vendor/glad/src/../include/glad/glad.h:89:10: fatal error: 'KHR/khrplatform.h' file not found
89 | #include <KHR/khrplatform.h>"

I fixed it by changing the glad.h file line 89
from: "#include </KHR/khrplatform.h>" to "#include <../KHR/khrplatform.h>

Hope this helps for others.

Rainer
PS: I have also attached the corrected file.
glad.h.zip

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