Emscripten support

Started by
3 comments, last by Bishop Holy 9 years, 4 months ago

Are there any plan to support emscripten build?

In 2.29.2 and 2.28.2 i have r = mod->Build(); failed.
In 2.27.1 script worked but i cannot use class in it, without class all works fine, with class i have exceptions.

I use a latest version of emscripten.

Maybe i have to write some special defines to build compatibility lib?

Advertisement

Maybe you should try binding your classes using the generic calling convention + define AS_MAX_PORTABILITY, because AFAIK AngelScript doesn't have low-level support for the Javascript platform.

(and I'm also interested in compiling my code to Emscripten, one day :) )

It is classes in script, not c++ classes. I try to define AS_MAX_PORTABILITY, but it not helps me.

P.S.: all func bind with generic calling convention.

I've never used emscripten, but I'd gladly add support for using it if you can figure out why it is not working now.

From what I gather emscripten is simply converting llvm code into javascript. It may be that the problem is not actually in AngelScript, but in emscripten itself. Perhaps there is something in AngelScript that emscripten currently cannot translate properly into javascript.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Great news - all works in 2.29.2.
I have build fail because scriptarray addon does not bind stl named methods in generic mode. I was not paying attention.

Now my engine fully ported to html5 and works fine.

Thanks =)

This topic is closed to new replies.

Advertisement