Feature request - Emscripten environment

Hi,
I wrote an application in C++, and now I have to port it to Javascript. So I thought to use emscripten to compile cocos2d-x and my project in Javascript. I could compile cocos2d-x successfully but I encountered problem with its dependencies (curl for instance). Is there any plans to officially support emscripten environment ?
Thanks for your answer.

1 Like

Yeah, that would be an awesome feature and a great differentiator for cocos2d-x

Check emscripten here : https://github.com/kripken/emscripten/wiki

It’s truly awesome !

Check it out,
Cheers

I am currently working on it, but it is not functional at the moment.
https://github.com/azmeuk/cocos2d-x and it should be compiled with https://github.com/azmeuk/emscripten as this version approximately supports GLFW.
At this point I can compile libcocos2d.so and HelloCpp, and I can get a black screen in Firefox with some WebGL exceptions.
I disabled JPEG, TIFF and WebP images for the moment.
Any help is welcomed, I’m not very familiar with WebGL :slight_smile:

@azmeuk still want a emscripten support? I can help. This guy stated some work as well check http://discuss.cocos2d-x.org/t/are-you-interested-in-emscripten-platform/18251?u=el_jorge

Well, emscripten and especially cocos2d-x has changed a lot since Mars '13. At this time I finally had a functionnal version of cocos2d-x working with emscripten but things should be different now.

Unfortunately I do not have the time to work on it now.