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

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
Pienkaito
Prole
Posts: 2
Joined: Sat Dec 26, 2020 5:53 pm

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

Post by Pienkaito »

TL;DR:
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 https://www.libsdl.org/download-2.0.php
As the time of this writing, it's SDL2-2.0.14

Code: Select all

cd ~
wget https://www.libsdl.org/release/SDL2-2.0.XYZ.tar.gz
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:
SDL_image/
SDL_mixer/
SDL_net/
SDL_ttf/

All latest packages can be found here: https://www.libsdl.org/projects/
Basically repeat this process 4 times in the following format:

Code: Select all

cd ~
wget http://www.libsdl.org/projects/SDL_image/release/SDL2_image-XYZ.tar.gz
tar zxvf SDL2_image-XYZ.tar.gz
cd SDL2_image-XYZ && mkdir build && cd build
../configure
make -j 1
sudo make install
.) Finally build LÖVE

Code: Select all

cd ~
git clone https://github.com/love2d/love
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
./platform/unix/automagic
./configure
LOVE_GRAPHICS_USE_OPENGLES=1 sudo make -j 1
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 34 guests