Running Love 11.1 on Raspberry Pi NO X11
Posted: Wed Apr 25, 2018 2:07 pm
Hello, hopefully someone here can help me to get this working.
I've spent the last 3 days trying to get Love2d 11.1 working on an original Raspberry Pi B without X11 using SDL compiles with OpenGL ES.
Here is what I have tried so far:
WORKED:
Installed Raspbian Stretch (full), installed dependencies and compiled Love2D 11.1 from scratch as well as LuaJIT and enabled the experimental OpenGL drivers, works fine, but super slow, from the desktop within the X11 environment. However, I can't have X11 in the final product. I can use this to write and test my graphics program now, on a faster multicore Raspberry pi 3, but eventually this needs to run on a bare minimum Linux, without X11 on the Raspberry Pi, likely to run on a Raspberry pi Zero. This is the reason I'm trying to use the original raspberry pi, as I know the processor on the original is just a slower version of what is used on the Pi Zero.
WHAT DID NOT WORK:
PiLove, as is, with Love2D 10.0 (10.2?). I used the 0.4 image in the downloads section and not only didn't it work as shown on the front page, it gave errors when using raspi-config to change the default password...so I'd like to stay away from this if I can. I was hoping I could install it and compile Love2D 11.1 on a system that "should" have SDL2 working, but I'm wary of using this non verified build now and the 10 version didn't work anyway. It seems whoever made this isn't updating it either as the last build was in 2016.
I tried installing Raspbian stretch lite and then compiling SDL2 and Love2d from scratch using various instructions I've found here and on the Raspberry Pi site. No go. Most often I get some sort of SDL file not present or no video found error.
I tried installing Retropie and compiling Love2d 11.1 on that, doesn't work.
I tried using the precompiled SDL packages from Retropie on a base Raspbian Stretch Lite with compiled Love2D 11.1, doesn't work.
I compiled Simple2D on the Pi and then compiled Love2D 11.1, doesn't work, throws an error about a file not found SDL 2.0.0....something, and for that matter building the simple triangle.c example on the Simple2D site soft locks the pi and displays nothing.
I tried using portions of the PiLove shell script on his git page, to compile both SDL2 and Love2D, no go.
I guess I should have more specific information about "each" failure but at this point I'm must hoping someone has done this and has a concise list of steps to follow to get this working. The main issue is, I don't know what SDL settings/versions are correct and what Love2D configurations are correct to get the two working individually or with each other. We could say that I should read the SDL docs and source code, but using Love2D is at least, in part, motivated by not wanting to do that, and I honestly don't know what to look for and each "error" in a compile takes, potentially hours to find when compiling on the Pi. I realized Raspberry Pi isn't officially supported but any help would be greatly appreciated.
I'd also like to note that none of the instructions for compiling Love2D reference, compiling, or as I now know, installing from dependency, LuaJIT, which I've had to do each time now using the Linux source download for Love2D. I thought Love2D had a built in precompiled LuaJIT version and/or the Raspberry Pi should? I even had to do this on the "full" Raspbian install.
I've spent the last 3 days trying to get Love2d 11.1 working on an original Raspberry Pi B without X11 using SDL compiles with OpenGL ES.
Here is what I have tried so far:
WORKED:
Installed Raspbian Stretch (full), installed dependencies and compiled Love2D 11.1 from scratch as well as LuaJIT and enabled the experimental OpenGL drivers, works fine, but super slow, from the desktop within the X11 environment. However, I can't have X11 in the final product. I can use this to write and test my graphics program now, on a faster multicore Raspberry pi 3, but eventually this needs to run on a bare minimum Linux, without X11 on the Raspberry Pi, likely to run on a Raspberry pi Zero. This is the reason I'm trying to use the original raspberry pi, as I know the processor on the original is just a slower version of what is used on the Pi Zero.
WHAT DID NOT WORK:
PiLove, as is, with Love2D 10.0 (10.2?). I used the 0.4 image in the downloads section and not only didn't it work as shown on the front page, it gave errors when using raspi-config to change the default password...so I'd like to stay away from this if I can. I was hoping I could install it and compile Love2D 11.1 on a system that "should" have SDL2 working, but I'm wary of using this non verified build now and the 10 version didn't work anyway. It seems whoever made this isn't updating it either as the last build was in 2016.
I tried installing Raspbian stretch lite and then compiling SDL2 and Love2d from scratch using various instructions I've found here and on the Raspberry Pi site. No go. Most often I get some sort of SDL file not present or no video found error.
I tried installing Retropie and compiling Love2d 11.1 on that, doesn't work.
I tried using the precompiled SDL packages from Retropie on a base Raspbian Stretch Lite with compiled Love2D 11.1, doesn't work.
I compiled Simple2D on the Pi and then compiled Love2D 11.1, doesn't work, throws an error about a file not found SDL 2.0.0....something, and for that matter building the simple triangle.c example on the Simple2D site soft locks the pi and displays nothing.
I tried using portions of the PiLove shell script on his git page, to compile both SDL2 and Love2D, no go.
I guess I should have more specific information about "each" failure but at this point I'm must hoping someone has done this and has a concise list of steps to follow to get this working. The main issue is, I don't know what SDL settings/versions are correct and what Love2D configurations are correct to get the two working individually or with each other. We could say that I should read the SDL docs and source code, but using Love2D is at least, in part, motivated by not wanting to do that, and I honestly don't know what to look for and each "error" in a compile takes, potentially hours to find when compiling on the Pi. I realized Raspberry Pi isn't officially supported but any help would be greatly appreciated.
I'd also like to note that none of the instructions for compiling Love2D reference, compiling, or as I now know, installing from dependency, LuaJIT, which I've had to do each time now using the Linux source download for Love2D. I thought Love2D had a built in precompiled LuaJIT version and/or the Raspberry Pi should? I even had to do this on the "full" Raspbian install.