Skip to content

Compiling on the Raspberry Pi (Raspbian Jessie)

HerbFargus edited this page Feb 15, 2016 · 23 revisions

Steps to install Attract-Mode on Raspbian Jessie:

  • Create a build environment

cd ~ mkdir develop ```````

  • Install SFML and Attract-Mode dependencies

apt-get install cmake libx11-dev libx11-xcb-dev libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util0-dev libxcb-ewmh-dev libxcb-keysyms1-dev libxcb-icccm4-dev libudev-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libfontconfig1-dev ```````

(Its possible you may need to patch some sfml libraries first from here

  • Download and build SFML

cd ~/develop git clone -b rpi https://github.com/mickelson/SFML sfml-pi mkdir sfml-pi/build;cd sfml-pi/build cmake -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DFREETYPE_INCLUDE_DIR_freetype2=/usr/include -DFREETYPE_INCLUDE_DIR_ft2build=/usr/include/freetype2 -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so -DSFML_OPENGL_ES=1 .. sudo make install sudo ldconfig ```````

  • 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!

Additional Notes

  • There is some image display corruption that can be fixed by adding:
framebuffer_depth=32
to the config file in the /boot folder.

Forum Thread