Emscripten

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
hooby3dfx
Posts: 16
Joined: Tue Dec 31, 2013 6:01 am

Emscripten

Post by hooby3dfx »

just wondering if anyone has looked into Emscripten for residual.
http://kripken.github.io/emscripten-site/

scummvm: http://clb.demon.fi/html5scummvm/
https://github.com/juj/emscripten-scummvm
klusark
Posts: 23
Joined: Tue Mar 27, 2012 11:12 pm

Re: Emscripten

Post by klusark »

Ya, I tried it once before. I got it to compile, but we use a few SDL functions which are not implemented by Emscripten so I was never able to get it to output any graphics.

Here is my code if you're interested.

https://github.com/klusark/residualvm/tree/emscripten

I might look into it again to see if they implemented what we needed.

edit:
It looks like they implemented one of the functions we need

https://github.com/kripken/emscripten/c ... 093b8a629e

I'll try building it tomorrow to see if it works now
Nitrus
Posts: 177
Joined: Wed May 18, 2011 9:49 am

Re: Emscripten

Post by Nitrus »

Wow this would be amazing! Of course I'm not sure what could actually be hosted, maybe the game demos? Other than that, webpage to local machine communication for the data files could be a nightmare to handle :D
In any case, hi klusark! :)
hooby3dfx
Posts: 16
Joined: Tue Dec 31, 2013 6:01 am

Re: Emscripten

Post by hooby3dfx »

awesome! any luck?
hooby3dfx
Posts: 16
Joined: Tue Dec 31, 2013 6:01 am

Re: Emscripten

Post by hooby3dfx »

so i attempted to compile residual with emscripten this weekend and failed.

any tips?

first issue: trying to do it in windows. ;p

(needless to say after awhile i decided doing it would be better on mac). on the configure script i had to use the --host flag with something to avoid compiling osx specific stuff.

following the steps for scummvm fork got me to compiling but the end result is a small 200k default html and 400k js file (default output; the build fails). not sure where it is failing. i should enable logs...

i dont think im missing anything, but then maybe the emscripten build process has changed since you attempted.
Post Reply