16
Scripting / Re: Compilation of Attract-Mode in Raspberry pi 4
« on: June 01, 2020, 12:58:03 AM »
So I sort of got Attract Mode working on Pi 4 but both situations arent ideal yet.
1. One way is to run via xinit or x11 : https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
Make sure to install the Pixel Desktop from the RetroPie Setup menu beforehand.
Update Buster
Create a build environment
Install dependencies
Download and build Attract-Mode
Delete build files
2. The other is via kms/drm which is closer to how Attract Mode is run on the Pi 3 : https://github.com/mickelson/sfml-pi/issues/13
1. One way is to run via xinit or x11 : https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
Make sure to install the Pixel Desktop from the RetroPie Setup menu beforehand.
Update Buster
Code: [Select]
sudo apt-get update; sudo apt-get upgrade
sudo reboot
Create a build environment
Code: [Select]
cd ~; mkdir develop
Install dependencies
Code: [Select]
sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libopenal-dev libfreetype6-dev libudev-dev libjpeg-dev libudev-dev libfontconfig1-dev libglu1-mesa-dev libsfml-dev libxinerama-dev libcurl4-openssl-dev
Download and build Attract-Mode
Code: [Select]
cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make USE_XINERAMA=1 USE_LIBCURL=1
sudo make install USE_XINERAMA=1 USE_LIBCURL=1
Delete build files
Code: [Select]
cd ~; rm -r -f ./develop
2. The other is via kms/drm which is closer to how Attract Mode is run on the Pi 3 : https://github.com/mickelson/sfml-pi/issues/13