-
Notifications
You must be signed in to change notification settings - Fork 28
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
Running as node.js server #16
Comments
I think you have to recompile the library to use it with Node. It should be enough to follow the Build Instructions and change the emscripten environment mode to To change the environment mode you have to edit the cmake script |
Thanks, will give it a try |
Can anyone please provide any updated info on this subject? I just set up a linux VM for the sole purposes of trying these steps. I was able to build with docker but I get |
Thank you for the pointer, @fabmax @JohnnyStreet I made the change in the file:
# Replace
-s ENVIRONMENT=web,worker
# with
-s ENVIRONMENT=node,worker This appears to work in Node |
Hi!
I'm looking to run the library on Node for the server of a game, but I'm running with issues:
self
ordocument
not defined on lines189
and191
I'm not able to set the correct combination of ENVIRONMENT variables :
What should I do to run the library on a Node script, in the command line?
The text was updated successfully, but these errors were encountered: