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:

Fedora

sudo yum install SFML-devel SFML

Ubuntu

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
python-dev
development libraries and headers
python-pip
pip install's other python packages
python-virtualenv
virtualenv lets you create sandboxed python virtual envs
libsfml-dev
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 .

Comments

Leave a comment

Please login or register to leave a comment!