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
Emscripten
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Emscripten
Last edited by bobbyjones on Tue Jun 02, 2015 2:21 am, edited 2 times in total.
Re: Emscripten
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.)
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.)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Emscripten
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.
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Emscripten
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.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.
- ejmr
- Party member
- Posts: 302
- Joined: Fri Jun 01, 2012 7:45 am
- Location: South Carolina, U.S.A.
- Contact:
Re: Emscripten
It does not.I~=Spam wrote:(BTW Does anyone here know if moonshine uses asm.js?)
Re: Emscripten
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.ejmr wrote:It does not.I~=Spam wrote:(BTW Does anyone here know if moonshine uses asm.js?)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Emscripten
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
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.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.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Emscripten
I recommend getting 1.32.4 it supports dynamic linking which love needs
Re: Emscripten
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.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
Who is online
Users browsing this forum: Bing [Bot] and 1 guest