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

generated gl3w.h dependent on khrplatform.h #60

Closed
ix-dcourtois opened this issue Jul 19, 2018 · 2 comments
Closed

generated gl3w.h dependent on khrplatform.h #60

ix-dcourtois opened this issue Jul 19, 2018 · 2 comments

Comments

@ix-dcourtois
Copy link

Hello there !

I don't know if it's just me not using this lib correctly, but I have a small "problem": in one of my project, I'm using gl3w_gen.py to generate gl3w.c, which I then compile as a static lib. The problem comes from the downloaded glcorearb.h file, which includes KHR/khrplatform.h (line 616 as of today) : this header is nowhere to be found on my systems (I'm developing on both Linux (Mint 18.3, which is derived from a recent Ubuntu I think) and Windows 10)

Fortunately for me I have another lib in my project which does include khrplatform.h so I fixed my problem by adding the correct include directory to the gl3w lib. But I find it odd that gl3w would generate a file which doesn't compile out of the box.

Since I can't seem to find any pertinent information on the subject, I'm starting to think that maybe I'm doing something wrong ? Am I the only one having this issue ? Would it make sense to slightly modify gl3w_gen.py to also download this file (found here : https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h) so that it would build out of the box ?

Regards,
Damien

@skaslev
Copy link
Owner

skaslev commented Jul 20, 2018

Latest master downloads KHR/khrplatform.h to gl3w's include directory since commit 99ed321 . Are you using the latest gl3w version?

@skaslev skaslev closed this as completed Jul 20, 2018
@ix-dcourtois
Copy link
Author

Ah ! I thought I was, but I must have made a mistake with the submodule ! Sorry for the issue, and thanks for the answer :)

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

2 participants