-
Notifications
You must be signed in to change notification settings - Fork 115
Compiling on the Raspberry Pi (Raspbian Jessie)
Steps to install Attract-Mode on Raspbian Jessie:
- Create a build environment
cd ~ mkdir develop ```````
- Install "sfml-pi" and Attract-Mode dependencies
sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev libudev-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libfontconfig1-dev ```````
- Download and build sfml-pi
cd ~/develop git clone --depth 1 https://github.com/mickelson/sfml-pi sfml-pi mkdir sfml-pi/build;cd sfml-pi/build cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so sudo make install sudo ldconfig ```````
- Download and build Attract-Mode
cd ~/develop git clone --depth 1 https://github.com/mickelson/attract attract cd attract make USE_GLES=1 sudo make install ```````
If all those steps worked, then it should be ready to go!
- Add the parameter "-j4" when you run make on a pi2 or pi3 to speed the build significantly
- If you get image display corruption, try adding
framebuffer_depth=32
to the config file in the /boot folder. - FFmpeg can be built with MMAL support to get hardware accelerated video decoding on the pi: https://ubuntu-mate.community/t/tutorial-build-or-download-ffmpeg-libavcodec-with-mmal-support-hardware-acceleration-video-decoding/3565
If you don't use the custom version of SFML noted above (sfml-pi), then Attract mode will need an X environment to run (which RetroPie does not ship with)
to get it to work you can do
sudo apt-get install xinit
then to start attract mode you type xinit attract
in the terminal