Login or register    

SFML Simple and Fast Multimedia Library Python Game Development

SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too.

Ubuntu installation

Install via apt-get

sudo apt-get install python-sfml
sudo apt-get install python-opengl

Install from source

random notes when I compiled from source on Ubuntu 14.04

There might be other dependencies but these are the ones I needed:


sudo yum install SFML-devel SFML


http://stackoverflow.com/a/39607844 <- i had to do this on ubuntu 16.04 when compiling SFML from source

sudo apt-get install python-dev python-pip python-virtualenv libsfml-dev
development libraries and headers
pip install's other python packages
virtualenv lets you create sandboxed python virtual envs
CPP development library and headers for SFML2

Create and activate a virtualenv

cd ~
virtualenv env
source env/bin/activate

Checkout pySFML sourcecode

mkdir git
cd git
git clone git@github.com:Sonkun/python-sfml.git
cd python-sfml

Install from source

pip install cython==0.19.2
pip install --upgrade .


Leave a comment

Please login or register to leave a comment!