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

Build oryol for emscripten has error #49

Closed
Angluca opened this issue Aug 5, 2014 · 2 comments
Closed

Build oryol for emscripten has error #49

Angluca opened this issue Aug 5, 2014 · 2 comments

Comments

@Angluca
Copy link

Angluca commented Aug 5, 2014

I build it on osx.

[ 57%] Building CXX object code/Modules/HTTP/CMakeFiles/HTTP.dir/emsc/emscURLLoader.cc.o
Linking CXX static library libHTTP.a
[ 57%] Built target HTTP
Scanning dependencies of target Render
[ 57%] Building CXX object code/Modules/Render/CMakeFiles/Render.dir/RenderProtocol.cc.o
[ 58%] Building CXX object code/Modules/Render/CMakeFiles/Render.dir/RenderFacade.cc.o
In file included from /Users/xxx/SDK/oryol/code/Modules/Render/RenderFacade.cc:5:
In file included from /Users/xxx/SDK/oryol/code/Modules/Render/RenderFacade.h:10:
In file included from /Users/xxx/SDK/oryol/code/Modules/Render/Core/displayMgr.h:18:
/Users/xxx/SDK/oryol/code/Modules/Render/emsc/emscDisplayMgr.h:34:5: error:
unknown type name 'EMSCRIPTEN_WEBGL_CONTEXT_HANDLE'
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE ctx;
^
1 error generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
make[2]: *** [code/Modules/Render/CMakeFiles/Render.dir/RenderFacade.cc.o] Error 1
make[1]: *** [code/Modules/Render/CMakeFiles/Render.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 58%] Built target hello
[ 58%] Built target CoreHello
make: *** [all] Error 2
ERROR: Build failed.

@floooh
Copy link
Owner

floooh commented Aug 5, 2014

Are you using the latest emscripten incoming branch? The missing structure is part of the very new WebGL context setup functions which is only in emscripten since last week or so. Updating the emscripten SDK to the latest version should fix this, easiest way is like this:

./oryol setup emscripten

@Angluca
Copy link
Author

Angluca commented Aug 5, 2014

Oh, I 'll try it , Thank you.

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