Problem running love games on a Raspberry Pi

Problems running games? Right in here.
I LÖVE LUA
Posts: 224
Joined: 12 Aug 2013, 13:19

Post » 16 Jun 2014, 16:22

I just got a Raspberry Pi and I installed Löve 2D 0.8.0 on it.
(I'm using the Raspbian distro and I used the "apt-get" command).

Sadly, even if the installation was a succes, I can't run any game without having this error :

Code: Select all

pi@[hostname] ~ $ love alesan99s-entities_12.0.love 
Could not set video mode: Couldn't find matching GLX visual
Could not set video mode: Couldn't find matching GLX visual
post-processing shaders not supported
(Yes, I used Alesian99's entities)

Is there a way to make the games work ?
I looked on the forums of LÖVE 2D and Google too, but I found nothing.

User avatar
Automatik
Posts: 1073
Joined: 20 Jul 2012, 17:54

Post » 16 Jun 2014, 17:16

I'm guessing Love can't use GLX, because the Pi support only GL ES,so Löve isn't compatible with Pies, I think. It's weird that Löve is in the Raspbian repos, though.
Edit : Try to compile Löve yourself. It look like some people on the love forum CAN run love on, their pi.
Using this : https://bitbucket.org/bartbes/love-expe ... patibility

User avatar
slime
Shaders guy
Posts: 148
Joined: 02 Feb 2012, 21:37

Post » 16 Jun 2014, 21:30

LÖVE 0.8.0 won't work on the Raspberry Pi for several reasons, including lack of support in SDL (LÖVE 0.8.0 relies on an older version of SDL) and lack of an OpenGL ES backend in LÖVE, which the Raspberry Pi requires for hardware-accelerated rendering.

This branch of LÖVE 0.9.1 (download) will run on the Raspberry Pi, as long as you get the most recent version of SDL2 and the other dependencies required to run LÖVE, and make sure to do the proper steps when building LÖVE.

LÖVE 0.9 isn't backwards-compatible with games written for LÖVE 0.8.0, though.

I LÖVE LUA
Posts: 224
Joined: 12 Aug 2013, 13:19

Post » 17 Jun 2014, 08:39

slime wrote:LÖVE 0.9 isn't backwards-compatible with games written for LÖVE 0.8.0, though.
I know, and this is a bit disappointing, because I wanted to play (and mod) Mari0 everywhere (a sweet alternative to the Android version suggestion).

Anyway,
Automatik wrote:I'm guessing Love can't use GLX, because the Pi support only GL ES,so Löve isn't compatible with Pies, I think. It's weird that Löve is in the Raspbian repos, though.
Edit : Try to compile Löve yourself. It look like some people on the love forum CAN run love on, their pi.
Using this : https://bitbucket.org/bartbes/love-expe ... patibility
I'm not sure about what to download.

User avatar
Automatik
Posts: 1073
Joined: 20 Jul 2012, 17:54

Post » 17 Jun 2014, 09:51

Download the link slime gave you : https://bitbucket.org/bartbes/love-expe ... ES.tar.bz2
Then decompress the folder, and to compile Löve

Code: Select all

cd [The folder with extra/platform/src in it]
platform/unix/automagic
./configure
make
And then, Löve should get compiled.
If you want to install it, uninstall Löve 0.8.0, then type

Code: Select all

sudo make install
into the terminal, type your password and It should get installed.

I LÖVE LUA
Posts: 224
Joined: 12 Aug 2013, 13:19

Post » 17 Jun 2014, 11:11

Is it supposed to happend?

Code: Select all

[automagic]  Copying files...
[automagic]  Running genmodules...
[automagic]  Running autoheader...
[automagic]  Running libtoolize...
[automagic]  Running aclocal...
[automagic]  Running autoconf...
[automagic]  Failed, sadface.
[automagic]  You can make this script more verbose running it in debug mode (-d)
[automagic]  This is generally a configuration error (I'm looking at you aclocal)
Debug mode :

Code: Select all

[automagic]  Copying files...
[automagic]  Running genmodules...
Generating src/Makefile.am ...
src/Makefile.am is updated! ^.^
Generating configure-modules.ac
configure-modules.ac is updated! ^.^
[automagic]  Running autoheader...
[automagic]  Running libtoolize...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `platform/unix'.
libtoolize: linking file `platform/unix/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `platform/unix/m4'.
libtoolize: linking file `platform/unix/m4/libtool.m4'
libtoolize: linking file `platform/unix/m4/ltoptions.m4'
libtoolize: linking file `platform/unix/m4/ltsugar.m4'
libtoolize: linking file `platform/unix/m4/ltversion.m4'
libtoolize: linking file `platform/unix/m4/lt~obsolete.m4'
[automagic]  Running aclocal...
[automagic]  Running autoconf...
configure.ac:54: error: possibly undefined macro: AM_PATH_SDL2
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
[automagic]  Failed, sadface.
[automagic]  You can make this script more verbose running it in debug mode (-d)
[automagic]  This is generally a configuration error (I'm looking at you aclocal)
And I did uninstalled LÖVE 0.8.0

Edit:
It did work after I (manually) added sdl2.m4.

User avatar
slime
Shaders guy
Posts: 148
Joined: 02 Feb 2012, 21:37

Post » 17 Jun 2014, 23:05

I LÖVE LUA wrote:I know, and this is a bit disappointing, because I wanted to play (and mod) Mari0 everywhere (a sweet alternative to the Android version suggestion).
The Mari0 SE beta runs on LÖVE 0.9.

I LÖVE LUA
Posts: 224
Joined: 12 Aug 2013, 13:19

Post » 19 Jun 2014, 09:23

slime wrote:The Mari0 SE beta runs on LÖVE 0.9.
I'm talking about Mari0, not Mari0 SE.

User avatar
slime
Shaders guy
Posts: 148
Joined: 02 Feb 2012, 21:37

Post » 20 Jun 2014, 07:31

And I'm telling you that you can play Mari0 using LÖVE 0.9 if you use the SE beta...

I LÖVE LUA
Posts: 224
Joined: 12 Aug 2013, 13:19

Post » 22 Jul 2014, 18:00

I found something that is whay I wanted. I just have to install "libgl1-mesa-swx11".

EDIT : It's really slow, but it works.
Image