Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Debian/Ubuntu packages for SFML  (Read 67874 times)

0 Members and 1 Guest are viewing this topic.

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Debian/Ubuntu packages for SFML
« on: May 02, 2013, 12:36:14 am »
Now that the final release of SFML 2.0 is out, it's maybe time for me to publicize my package project. I started making packages a while ago to package for Debian/Ubuntu. The primary goal was distributing my Python bindings but I ended up extending it to all bindings and projects based on SFML such as sfeMovie, Thor, SFGUI, TGUI, etc.

See also: For RedHat/Fedora/CentOS users, I've got the same projects for .rpm packages, I should announce it very soon.

These packages are stored on two launchpad PPAs providing them in two version: stable version and development version. The first repository provides stable version and is named sonkun/sfml-stable while the second, sonkun/sfml-development, provides the latest changes... and is frequently updated.

Each package is available for the last three Ubuntu versions:
  • 12.04LTS (Precise Pangolin)
  • 12.10 (Quantal Quetzal)
  • 13.04LTS (Raring Ringtail)

For Debian users, you'll have to get the respective .deb files from the launchpad website.

You first need to add the repository, open a console and type:

apt-add-repository ppa:sonkun/sfml-stable # for stable versions
apt-add-repository ppa:sonkun/sfml-development # for development versions
apt-get update

Now, install the package you want with:

apt-get install <package-name>

Warning: as the release of the final SFML 2.0 is recent, sfml-stable still contains SFML2.0-RC while sfml-development provides SFML2.0. So you'll be interested in getting the last one.

Warning2: For Python users, I'm experiencing issues with packaging the latest pySFML version, so you'll be better off using the previous stable version (1.2) which is based on SFML2-RC (in sonkun/sfml-stable) But don't worry, first the API differences are small (so it won't take a long time to update your code), and second, as soon as it's done, you can easily update to SFML2 by installing sonkun/sfml-development).

Here's the list of all packages available. One project generally have several package depending on what kind of project it is (library, application, python module, etc.).


SFML & its bindings

  • SFML
  • CSFML
  • JSFML
  • pySFML

StableDevelopmentPackagesNotes
SFML
Version: 2.0.0-RC
Commit: 19276a5
Version: 2.0.0
Commit: 86897a8
libsfml
libsfml-dbg
libsfml-dev
libsfml-doc
sfml-examples
The sfml-examples package provides scripts to run the SFML examples easily.
Type sfml-<example-name>.
For examples: sfml-shader would run the shader example and allow to quickly
see if SFML runs well with your graphic card.
CSFML
Version: 2.0.0-RC
Commit: 1bfc30c
Version: 2.0.0
Commit: 7aab902
libcsfml
libcsfml-dbg
libcsfml-dev
libcsfml-doc
No notes.
JSFML
Not available!
Version: 2.0.0 (dev)
Commit: 8438ca183d
libsfml-java
libsfml-java-doc
I'm not sure if files are installed properly.
I need feedback.

pySFML
Version: 1.2.0
Commit: Dunno
Available tomorrow!
python-sfml
python3-sfml
python-sfml-doc
python-sfml-dbg (comming soon)
python-sfml-dev (comming soon)
pysfml-examples
The pysfml-examples package provides scripts to run the pySFML examples
easily. Type pysfml-<example-name>.
For examples: pysfml-shader would run the shader example and allow to quickly
see if SFML runs well with your graphic card.


Libraries based on SFML
  • sfeMovie
  • Thor
  • SFGUI
  • TGUI

StableDevelopmentPackagesNotes
sfeMovie
Version: 1.0.0
Commit: 5c204197
Version: latest version
Commit: 47c14e2
libsfemovie
libsfemovie-dev
sfemovie-example
The sfemovie-example package provides a script to run the single sfeMovie
examples easily. Type sfemovie-example to see if sfeMovie works well on your
system.
Thor
Not available!
Version: 2.0.0 (development)
Commit: 95ffe09832
libthor
libthor-dbg
libthor-dev
libthor-doc
thor-examples
The thor-examples package provides scripts to run the Thor examples easily.
Type thor-<example-name>.
For examples: thor-particles
TGUI
Version: 0.4.2
Commit: Dunno
Version: 0.5.0
Commit: Dunno
libtgui
tgui-dbg
tgui-dev
tgui-formbuilder
The tgui-formbuilder package provides scripts to run the
Form builder (RAD).
SFGUI
Not available!
Available but I need to
check its version.

libsfgui
sfgui-dbg
sfgui-dev
sfgui-doc
sfgui-examples
The sfgui-examples package provides scripts to run the SFGUI
examples easily. Type sfgui-<example-name>.
Interested in using SFML with Python ? Try out its Python binding!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Debian/Ubuntu packages for SFML
« Reply #1 on: May 02, 2013, 06:01:23 am »
Thanks! :)

As you have noticed, Thor is not in a stable version yet, so I wouldn't package it at the moment.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Debian/Ubuntu packages for SFML
« Reply #2 on: May 02, 2013, 08:19:32 am »
Awesome :D
Laurent Gomila - SFML developer

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: Debian/Ubuntu packages for SFML
« Reply #3 on: May 02, 2013, 10:19:07 am »
Cool. Thanks a lot.
TGUI: C++ SFML GUI

netrick

  • Full Member
  • ***
  • Posts: 174
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #4 on: May 02, 2013, 11:25:23 am »
TGUI is outdated, isn't it? Stable is 0.5 and dev is 0.6.

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: Debian/Ubuntu packages for SFML
« Reply #5 on: May 02, 2013, 05:40:16 pm »
And the dev version of SFML will be up to date at each commit on GitHub or each time you update the package yourself ?

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #6 on: May 03, 2013, 02:03:53 pm »
With pleasure :)

As you have noticed, Thor is not in a stable version yet, so I wouldn't package it at the moment.
Okay, then I'll ask for a stable commit next time :)

TGUI is outdated, isn't it? Stable is 0.5 and dev is 0.6.
Should I package 0.6 (in development) instead of 0.5 ? Which commit ?

And the dev version of SFML will be up to date at each commit on GitHub or each time you update the package yourself ?
When I started packaging, there were many factors that prevented me from relying on the github source. SFML2.0 wasn't released and most of people's work was based on either the release candidate or the latest changes (what branch?). Also, as their build scripts (mostly CMake) weren't always updated, I had to patch most of them. Now it should become more stable and I could consider relying on their git version. I'll keep you updated here.
Interested in using SFML with Python ? Try out its Python binding!

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: Debian/Ubuntu packages for SFML
« Reply #7 on: May 03, 2013, 03:52:23 pm »
Quote
Should I package 0.6 (in development) instead of 0.5 ? Which commit ?
I would keep the stable sfml2.0 together with tgui 0.5.
Then the github version of sfml could be in development together with tgui 0.6.
But as long as your stable version is sfml2-RC you can't move v0.5 to stable because only tgui 0.4 can be compiled with the sfml2-RC.

Development version 0.6 is on the master branch which is now commit 70d449620e.
Stable version 0.5 has its own v0.5 branch which is commit 26ea704b0a.
TGUI: C++ SFML GUI

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Debian/Ubuntu packages for SFML
« Reply #8 on: May 03, 2013, 03:53:35 pm »
Okay, then I'll ask for a stable commit next time :)
Wait for Thor 2.0 :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Debian/Ubuntu packages for SFML
« Reply #9 on: May 06, 2013, 08:53:21 am »
Awesome, thanks for providing the packages. :)

For SFGUI you can always find the latest version (numbers) here (currently 0.1.0).

anthnich

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Long Division LLC
Re: Debian/Ubuntu packages for SFML
« Reply #10 on: May 07, 2013, 04:04:17 pm »
I was just thinking about Linux development lately, so this is great to hear. Thanks!

Syntactic Fructose

  • Jr. Member
  • **
  • Posts: 80
  • Overflowing stacks and eating snacks
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #11 on: May 16, 2013, 11:53:04 pm »
you're awesome! this is so helpful for linux development
« Last Edit: May 21, 2013, 12:08:57 am by need4sleep »

timo777

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #12 on: May 17, 2013, 08:59:44 pm »
Thank you! It was horrible to install it on multiple computers. :S

isReady

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #13 on: May 22, 2013, 08:09:18 am »
Am I the only one who is not able to download the sfml-development package? I already tried to use only libsfml but it's not possible to link with this version [there are no include files and some links are missing in /usr/lib]

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Debian/Ubuntu packages for SFML
« Reply #14 on: May 22, 2013, 05:42:44 pm »
Am I the only one who is not able to download the sfml-development package? I already tried to use only libsfml but it's not possible to link with this version [there are no include files and some links are missing in /usr/lib]
I quickly checked if the files are properly installed and it seems they are so I suppose you're missing libsfml-dev. :) libfoo-dev packages install stuff we need to compile and dev.
Interested in using SFML with Python ? Try out its Python binding!