Emscripten

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

Emscripten

Post by bobbyjones » Sun May 24, 2015 9:44 pm

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
Last edited by bobbyjones on Tue Jun 02, 2015 2:21 am, edited 2 times in total.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Emscripten

Post by I~=Spam » Sun May 24, 2015 11:17 pm

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.)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610

bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

Re: Emscripten

Post by bobbyjones » Sun May 24, 2015 11:46 pm

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.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
slime
Solid Snayke
Posts: 2863
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Emscripten

Post by slime » Sun May 24, 2015 11:55 pm

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.

User avatar
ejmr
Party member
Posts: 302
Joined: Fri Jun 01, 2012 7:45 am
Location: South Carolina, U.S.A.
Contact:

Re: Emscripten

Post by ejmr » Mon May 25, 2015 1:45 am

I~=Spam wrote:(BTW Does anyone here know if moonshine uses asm.js?)
It does not.
ejmr :: Programming and Game-Dev Blog, GitHub
南無妙法蓮華經

User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Emscripten

Post by I~=Spam » Mon May 25, 2015 2:12 am

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.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610

bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

Re: Emscripten

Post by bobbyjones » Mon May 25, 2015 3:10 am

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.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Emscripten

Post by I~=Spam » Mon May 25, 2015 3:38 am

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. :P (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.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610

bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

Re: Emscripten

Post by bobbyjones » Mon May 25, 2015 3:52 am

I recommend getting 1.32.4 it supports dynamic linking which love needs
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Emscripten

Post by I~=Spam » Mon May 25, 2015 11:06 pm

Yep that is what I got. :) (I just used the AUR. :P 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. :ultraglee:
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests