Does Love work on Raspbian?

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.
Post Reply
User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

Does Love work on Raspbian?

Post by MicroMacro »

Hai!

I wanna make a game console using the new Raspberry Pi 2 I just picked up. I wanna do a few things:

1: Run games I develop using .love files.
2: Autorun a base "game console" application that lets you run my games
3: Download updates for games from the internet

Does Love work on the Pi 2 and can I do the autorun to a love file?

Thanks.
https://github.com/ebernerd- where you can find all my work.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Does Love work on Raspbian?

Post by s-ol »

MicroMacro wrote:Hai!

I wanna make a game console using the new Raspberry Pi 2 I just picked up. I wanna do a few things:

1: Run games I develop using .love files.
2: Autorun a base "game console" application that lets you run my games
3: Download updates for games from the internet

Does Love work on the Pi 2 and can I do the autorun to a love file?

Thanks.
I think you will need to compile it yourself. I'm not sure about the dependencies, maybe raspbian is a bit behind (SDL2 and things?) but someone like rude should be able to tell you.

For the autostart script, that should not be an issue at all. You would write a launcher application somehow (this could be a LÖVE app itself even) and then add that to your .xinitrc or some other session config, depending on your desktop environment.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

Re: Does Love work on Raspbian?

Post by MicroMacro »

Uhm... to be honest, that's all jargon to me.

I understand how to install the OS, and that's it. Im a windows user, so anything linux is like the Charlie Brown bit with the teacher: wah wah wah wah wah. xD


Thank you for the info tho. So, what you're saying is that the Linux download for Love won't work with Raspbian by itself?
https://github.com/ebernerd- where you can find all my work.
User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

Re: Does Love work on Raspbian?

Post by MicroMacro »

Also, can .love files execute commands, like, can a .love file run another .love file?
https://github.com/ebernerd- where you can find all my work.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Does Love work on Raspbian?

Post by s-ol »

Basically, noone has taken the LÖVE source code, put it onto a raspberry pi and "compiled" it into a binary (like a .exe would be for windows). [At least as far as I know, if you're lucky someone has]

If you have no idea how to linux, you will probably have a hard time doing that by yourself... I would try doing it for you but I currently don't have access to a raspberry. I could and would help out with the start-script though, you can hit me up if you get LÖVE itself working and need any help.
MicroMacro wrote:Also, can .love files execute commands, like, can a .love file run another .love file?
yes, that's what I was thinking about in the first reply.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

Re: Does Love work on Raspbian?

Post by MicroMacro »

Alright. Can I ask how one executes other programs from Love? That would be nice to know for current projects on Windows.
https://github.com/ebernerd- where you can find all my work.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Does Love work on Raspbian?

Post by s-ol »

MicroMacro wrote:Alright. Can I ask how one executes other programs from Love? That would be nice to know for current projects on Windows.
os.execute("love sometime.love"), assuming you have love in your PATH.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Does Love work on Raspbian?

Post by I~=Spam »

Hmmm I would just try to compile and see what error comes up. It asks for a lib I look up the lib and install it... :\ Not exactly the best but there are some libs you know right away you will need. Unfortunately it is definitely possible that it won't compile at all without more work because of the arm architecture and opengl es (I think raspbian uses that...).

See here: https://love2d.org/wiki/Building_L%C3%96VE
and here for some dependancies (will be called something else in raspbian): https://www.archlinux.org/packages/comm ... 6_64/love/
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Does Love work on Raspbian?

Post by bartbes »

S0lll0s wrote:Basically, noone has taken the LÖVE source code, put it onto a raspberry pi and "compiled" it into a binary (like a .exe would be for windows).
I know of at least 4 people who have. Either the 0.9.2 GLES branch (from love-experiments) or the current 0.10.0 branch should compile fine if SDL2 is installed correctly.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Does Love work on Raspbian?

Post by s-ol »

bartbes wrote:
S0lll0s wrote:Basically, noone has taken the LÖVE source code, put it onto a raspberry pi and "compiled" it into a binary (like a .exe would be for windows).
I know of at least 4 people who have. Either the 0.9.2 GLES branch (from love-experiments) or the current 0.10.0 branch should compile fine if SDL2 is installed correctly.
That's good news then.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 125 guests