Page 1 of 1

Running LÖVE on a TFT Display on Raspberry Pi Zero?

Posted: Sat Dec 26, 2020 6:22 pm
by Pienkaito
I have bought a 3.5" TFT Touch Display and it works. Source
I can see the console running on the display and I can login into it.
However if I run LÖVE, then the video is being displayed on the HDMI port and not the TFT display. I would like to see LÖVE on the TFT Display.
Does anyone know what to do?

Here are my steps on what I did. Skip below for my actual issue.
A big shoutout to molul for the tutorial on how to install LÖVE. Link to Source

I would like to give LÖVE a try on Raspberry and so far I could launch it with great results.

.) Download the newest Raspberry Pi OS Lite
.) Install it on an SD Card
.) "sudo apt-get update" and "sudo apt-get upgrade" to get everything up-to-date

.) Get all the required libraries for SDL2

Code: Select all

sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg8-dev libtiff5-dev libwebp-dev automake
.) Download the latest SDL2 package, unpack it, install it
You can get it here
As the time of this writing, it's SDL2-2.0.14

Code: Select all

cd ~
tar zxvf SDL2-2.0.XYZ.tar.gz
cd SDL2-2.0.XYZ && mkdir build && cd build
../configure --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl
make -j 1
sudo make install
.) Check if SDL2 is installed correctly

Code: Select all

sdl2-config --version
.) I also didn't checked, but installed the following packages anyway:

All latest packages can be found here:
Basically repeat this process 4 times in the following format:

Code: Select all

cd ~
tar zxvf SDL2_image-XYZ.tar.gz
cd SDL2_image-XYZ && mkdir build && cd build
make -j 1
sudo make install
.) Finally build LÖVE

Code: Select all

cd ~
git clone
sudo apt-get install build-essential autotools-dev automake libtool pkg-config libfreetype6-dev libluajit-5.1-dev libphysfs-dev libsdl2-dev libopenal-dev libogg-dev libvorbis-dev libmodplug-dev libmpg123-dev libtheora-dev