ResidualVM logo Forum Index - ResidualVM website - Contact us - Rules Login    Register     Search curved edge
It is currently Fri Jul 10, 2020 7:46 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Emscripten
PostPosted: Wed Feb 18, 2015 3:27 am 
Offline

Joined: Tue Dec 31, 2013 6:01 am
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Emscripten
PostPosted: Sat Feb 21, 2015 7:47 am 
Offline
ResidualVM Developer

Joined: Tue Mar 27, 2012 11:12 pm
Posts: 23
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


Top
 Profile  
 
 Post subject: Re: Emscripten
PostPosted: Fri Feb 27, 2015 12:01 pm 
Offline
User avatar

Joined: Thu Jun 21, 2012 3:00 pm
Posts: 147
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! :)


Top
 Profile  
 
 Post subject: Re: Emscripten
PostPosted: Fri Mar 06, 2015 6:17 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Emscripten
PostPosted: Tue Mar 10, 2015 3:36 am 
Offline

Joined: Tue Dec 31, 2013 6:01 am
Posts: 16
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Forum design by ScummVM team, icons by raina, adopted for ResidualVM
curved edge   curved edge