Page 1 of 5
Emscripten
Posted: Sun May 24, 2015 9:44 pm
by bobbyjones
Has anyone here ever used emscripten before? I'm going to attempt to compile Löve to JavaScript and I would love to have any advice from any one who is more experienced. I honestly don't know what I'm doing.
Edit: We have a repo for this emscripten experiment. I request all hands on deck as we try to make this work. If any of have experience with emscripten, c++, web or autotools we can use your help. The repo is a fork of love 0.10.0 but we do have a 0.9.2 branch.
https://bitbucket.org/Bobbyjones/emscripten-love
Re: Emscripten
Posted: Sun May 24, 2015 11:17 pm
by I~=Spam
Here's my recommendation: If you don't know what you are doing don't even try. Just don't because you are wasting your time. Getting this to work in emscripten isn't just "recompiling" LOVE or even setting a few defines. It is a lot harder than that. Particularly many of SDL callbacks will need to be rewritten and that alone can be difficult because the documentation isn't very good.
If it was simple to compile LOVE for emscripten don't you think someone would have done it already? I would like to see this too but I know very little about emscripten other than it is not a walk in the park to use.
(BTW Does anyone here know if moonshine uses asm.js? If it doesn't use it emscripten has a high potential to be faster than punchdrunk. The core punchdrunk code is written in coffeescript so no asm.js. This is important because c++ running in emscripten is faster than plain javascript/coffscript so that would mean emscripten would be faster than punchdrunk.)
Re: Emscripten
Posted: Sun May 24, 2015 11:46 pm
by bobbyjones
Well I'm just trying to see what exactly needs to be done for this to work. Having a list of things to do is better then having nothing.
Re: Emscripten
Posted: Sun May 24, 2015 11:55 pm
by slime
I~=Spam wrote:If it was simple to compile LOVE for emscripten don't you think someone would have done it already? I would like to see this too but I know very little about emscripten other than it is not a walk in the park to use.
Well, SDL only received an official emscripten backend a few months ago, so it hasn't been feasible to do a "straight port" of LÖVE to emscripten for very long.
Re: Emscripten
Posted: Mon May 25, 2015 1:45 am
by ejmr
I~=Spam wrote:(BTW Does anyone here know if moonshine uses asm.js?)
It does not.
Re: Emscripten
Posted: Mon May 25, 2015 2:12 am
by I~=Spam
ejmr wrote:I~=Spam wrote:(BTW Does anyone here know if moonshine uses asm.js?)
It does not.
What a shame... emscripten really does have the possibility to be faster than punchdrunk then... it would be interesting to see how they compare if/when the emscripten port comes out.
Re: Emscripten
Posted: Mon May 25, 2015 3:10 am
by bobbyjones
Lol emscripten is a pita to compile. It takes literally 8 hours on my PC. And if you mess up? There you go all over again. I'm on my second day of non stop compiling.
Re: Emscripten
Posted: Mon May 25, 2015 3:38 am
by I~=Spam
bobbyjones wrote:Lol emscripten is a pita to compile. It takes literally 8 hours on my PC. And if you mess up? There you go all over again. I'm on my second day of non stop compiling.
Really? Hmmm maybe I should try and see how long it takes me.
(I am on Arch Linux BTW...) I am starting it now I will let you know how it goes.
I have slow internet so downloading emscripten and require libs will take a while.
Re: Emscripten
Posted: Mon May 25, 2015 3:52 am
by bobbyjones
I recommend getting 1.32.4 it supports dynamic linking which love needs
Re: Emscripten
Posted: Mon May 25, 2015 11:06 pm
by I~=Spam
Yep that is what I got.
(I just used the AUR.
It makes things really easy because I don't have to worry about dependencies.) I started compiling about 10-15min ago actually and the cmake percentage helper is already at 16%! I can't wait to compile some stuff with it.