OK, so I can confirm that I have now got the 0.10.0 development branch of Love2d working fully accelerated on the RPi 2 with the latest Raspbian Jessie. It was a nightmare, but it runs (not in X) in GL ES mode full screen accelerated and the Demo (SuperToast) looks absolutely fantastic. The animation is perfectly smooth and the antialiasing is flawless. It is a nice test as it is doing a huge amount of work and not stressing the CPU at all.
The big hurdle was SDL2, as the version in the repositories is not configured to use OpenGl ES. Everything will compile but you just get an error message telling you it can't find graphics drivers. If you run love from inside X, SDL2 will open a simple green text window telling you it can't talk to X and when you click OK it just shuts down. That is sensible, as RPi does not yet have drivers to support accelerated X graphics.
So, here is the epic journey you will need to endure to get SuperToast running. Hopefully it will soon be cleaned up and made into a .deb - it doesn't make much sense to have SDL2 in the repository not able to talk to GLES when the SLD2 developers put this feature in over a year ago.
1. download the love2d 0.10.0 .zip file and extract it to the home directory. Open a terminal window and cd into this rude directory. There is a readme there with details of how to do the install. Preface these commands with sudo.
2. Install all the dependencies. The love2d guide mentions these and you will get a complaint if any are missing. Installl SDL2, even though it needs replacing - so you can get the build working. One tricky problem is an error from the configure script about AM_SILENT_RULES. You need to install libtool - Generic library support, which probably should be a default but isn't.
3. Older builds of love2d used to install the final binary for you. These unstable src packages result in a script called love in the repository/src directory, which has some notes saying don't move it. Also, the first time you run it, use sudo or it will complain. This may be obvious to many people, but little gotchas like this can really create confusion when lots of things aren't working properly.
OK, so at this stage, we have no accelerated graphics. What is required is to install a version of SDL2 that actually will use OpenGl ES. I tried various things
- download the latest SDL2 source and build that. Nope, no dice.
- https://solarianprogrammer.com/2015/01/ ... ted-sdl-2/
This looked like it would be the solution, but if it worked for wheezy, it does not seem to work for jessie. Still no dice.
- SDL2 has nightly binaries for RPi version of SDL2. They do not seem to work either.
Actually at this stage I was almost ready to throw in the towel, but a search on the forums turned up this -
Finally, this works. I don't know what they do or why it works, but download that source and do as instructed and you will get an SDL2 that talks to GLES. Supertoast will burst into life on your screen in full screen accelerated glory. To run it get a text window up by ALT-CTL-F2, cd to the rude/src directory and ./love
Unfortunately there is a catch with the SuperToast demo. It seems that the ESC key is not made available to exit, so once the demo is running you can't stop it and it has grabbed all your keys, so power switch is the only way out. The mouse works, so unless retropi has configured SDL2 to ignore keystrokes, ESC must not be being used to exit the demo.
The love2d toolset is unbelievably good and an excellent match to the RPi. It should even run easily on the RPi Zero. Hopefully someone who knows their way around Raspbian can make it a bit easier to get the SDL2 working.