Skip to content

JustMev/sfml-pi

 
 

Repository files navigation

SFML-Pi

SFML on the Raspberry Pi with hardware accelerated graphics and no X11 dependency.

Install

Step 1: Install the SFML dependencies

sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg8-dev libfreetype6-dev libudev-dev

Step 2: Build SFML-Pi

  • From the source directory for sfml-pi, run cmake with the '-DSFML_RPI=1' parameter.
  • Once cmake runs successfully, compile using 'sudo make install' and then 'sudo ldconfig'
  • The commands should look something like this:
mkdir build
cd 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

That's it! You should now be able to use SFML on your raspberry pi with hardware accelerated graphics and no need to be running X.

More Info

Please consult the SFML readme for more info: [readme-sfml.txt][]

About

SFML for the Raspberry Pi (w/ hardware accelerated graphics and no X11 dependency)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.5%
  • Objective-C++ 6.9%
  • CMake 6.2%
  • Objective-C 2.2%
  • Makefile 0.2%