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

How about compile it for Emscripten? #131

Open
zhangew opened this issue Aug 12, 2024 · 2 comments
Open

How about compile it for Emscripten? #131

zhangew opened this issue Aug 12, 2024 · 2 comments

Comments

@zhangew
Copy link

zhangew commented Aug 12, 2024

I've tried once, but compiling error occurred in gles1CompatibilityHacks.h.
addons/ofxImGui/src/gles1CompatibilityHacks.h:36:3: error: "ofxImGui doesn't know where GLES 1 is located for your platform !"
36 | #error "ofxImGui doesn't know where GLES 1 is located for your platform !"

Thanks and best regards.

@Daandelange
Copy link
Collaborator

Hey,
Sorry, I have no experience with emscripten. I think there's a related PR here regarding Emscripten compilation : #116

Emscripten isn't yet supported, but I think some people got it working.
Go to that error : You have to tell ImGui where your GLES1 headers are, look at the ios and rpi conditions above and add an emscripten one. ;)

@Daandelange
Copy link
Collaborator

You might also need to look here in imconfig.h which does something GLES only for RPI, as that's the only GLES platform that I have used.

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

No branches or pull requests

2 participants