SFML community forums

General => General discussions => Topic started by: Sonkun on May 02, 2013, 12:36:14 am

Title: Debian/Ubuntu packages for SFML
Post by: Sonkun 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:

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


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

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>.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Nexus 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.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on May 02, 2013, 08:19:32 am
Awesome :D
Title: Re: Debian/Ubuntu packages for SFML
Post by: texus on May 02, 2013, 10:19:07 am
Cool. Thanks a lot.
Title: Re: Debian/Ubuntu packages for SFML
Post by: netrick on May 02, 2013, 11:25:23 am
TGUI is outdated, isn't it? Stable is 0.5 and dev is 0.6.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Lo-X 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 ?
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun 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.
Title: Re: Debian/Ubuntu packages for SFML
Post by: texus 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.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Nexus on May 03, 2013, 03:53:35 pm
Okay, then I'll ask for a stable commit next time :)
Wait for Thor 2.0 :)
Title: Re: Debian/Ubuntu packages for SFML
Post by: Tank 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 (http://sfgui.sfml-dev.de/download/) (currently 0.1.0).
Title: Re: Debian/Ubuntu packages for SFML
Post by: anthnich on May 07, 2013, 04:04:17 pm
I was just thinking about Linux development lately, so this is great to hear. Thanks!
Title: Re: Debian/Ubuntu packages for SFML
Post by: Syntactic Fructose on May 16, 2013, 11:53:04 pm
you're awesome! this is so helpful for linux development
Title: Re: Debian/Ubuntu packages for SFML
Post by: timo777 on May 17, 2013, 08:59:44 pm
Thank you! It was horrible to install it on multiple computers. :S
Title: Re: Debian/Ubuntu packages for SFML
Post by: isReady 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]
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun 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.
Title: Re: Debian/Ubuntu packages for SFML
Post by: isReady on May 24, 2013, 04:09:42 pm
Hey thank you, it worked  :D
But I do not really understand why it does.
http://packages.ubuntu.com/de/precise/libsfml-dev (http://packages.ubuntu.com/de/precise/libsfml-dev)
The package information show that the package libsfml-dev is still version 1.6. But why does my machine install sfml 2.0 now?
Would it be possible that adding your launchpad account to my repositories is the reason for this behaviour?
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on May 26, 2013, 11:11:35 pm
Yes, my repositories provide a higher version of SFML and thus, supersedes the old ones. You can still remove them, apt-add-remove ppa:sonkun/sfml-development then update with apt-get update.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Syntactic Fructose on June 06, 2013, 01:49:22 am
Just checking in on any progress for .rpm packages, Thanks for your work again!
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on June 06, 2013, 02:15:43 am
Glad to hear there's someone interested in the .rpm version of this project.

Actually I've got most of them on my computer but I just got stuck with the sfeMovie .rpm and then got bored. >.< As soon as I've got some time to spend on it, I'll make them available (even already wrote the announcement .. a  while ago :p).

Thanks.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on June 06, 2013, 08:32:51 am
I've sent an e-mail to the Debian game team mailing-list, and it seems like a little help would boost the adoption of SFML 2 into the official repositories.
http://lists.alioth.debian.org/pipermail/pkg-games-devel/2013-June/026334.html

Since you have already done this job, maybe you could help them?
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on June 12, 2013, 07:46:08 am
Sure! I'd be glad to help them :) I just need to fix some issues regarding the Debian packaging policy which isn't strictly respected by my packages. I'm currently reading their doc, thank you for having informed me.
Title: Re: Debian/Ubuntu packages for SFML
Post by: laguna_999 on July 26, 2013, 10:32:33 pm
Hi there,
I am using debian 7.1 (64bit, 32bit works fine for me by just using the 32bit libs from the sfml downloads page) and probably are doing something wrong (normally using archlinux).
Using the 64bit libs and includes from the download page tells me i need libglew and libjpeg in versions that don't exist for my distribution (libglew 1.7 instead of 1.6)

So I tried the approach from this thread. When i run an apt-get update, all i get is
Quote
W: Failed to fetch http://ppa.launchpad.net/sonkun/sfml-stable/ubuntu/dists/wheezy/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/sonkun/sfml-stable/ubuntu/dists/wheezy/main/binary-amd64/Packages  404  Not Found

Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on July 27, 2013, 03:59:52 am
Unfortunately, I haven't tried on Debian so I can't really help here but, from what I can see, the repo is properly added but Debian isn't looking for the packages at the right place. It expects to find them under dist/wheezy but it'll only find some under dist/precise, dist/quantal and dist/raring so try a manual install. Remove the repo you just added, download the .deb packages and "dpkg -i sfml*.deb".

https://launchpad.net/~sonkun/+archive/sfml-stable
Title: Re: Debian/Ubuntu packages for SFML
Post by: laguna_999 on July 27, 2013, 11:12:34 pm
Thank you a lot for your help and time!

I tried downloading the *.deb 64 bit file manually but by running dpkg just yields me the same stubborn dependency on libglew and libc:
Quote
libsfml depends on libglew1.6(>=1.6.0); however:
package libglew1.6 is not installed.
Quote
libsfml depends on libc6 (>=2.15); however:
Version of libc6:amd64 is 2.13-38

I actually do have libglew 1.7 installed, but i don't get, why dpkg does not want to use it.  :-\
The libc6 2.13-38 seems to be the newest version for debian 7.1 .
Title: Re: Debian/Ubuntu packages for SFML
Post by: netrick on August 02, 2013, 04:09:02 pm
Any progress in adding SFML 2.1 to debian repos? It would be great because that would make it available on a big part of linux world because many widely used distros are based on debian repos.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on August 04, 2013, 01:43:57 am
Any progress in adding SFML 2.1 to debian repos? It would be great because that would make it available on a big part of linux world because many widely used distros are based on debian repos.
SFML is getting its own repository. :) I should give news by the end of the (next) week.

I actually do have libglew 1.7 installed, but i don't get, why dpkg does not want to use it.  :-\
The libc6 2.13-38 seems to be the newest version for debian 7.1 .
I'll give a try on Debian 7.1 as soon as I can.
Title: Re: Debian/Ubuntu packages for SFML
Post by: netrick on August 04, 2013, 10:30:36 am
Own repository has the flaw that user must add it to the system, I think such a widely-used lib like SFML should be in official repos. Being in debian repos means being in *buntu and mint repos as well. Every SFML dependency is in debian repos, packages are already done, why don't you want to try?
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on August 04, 2013, 10:36:40 am
Of course we'll also contact the official repos maintainers so that SFML is added as soon as possible. Sorry if this was not clear.

But it may take some time before it happens, so meanwhile we'll also setup our own repositories. These repos will allow people to get the latest SFML packages as soon as they are released.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on August 04, 2013, 05:05:48 pm
Sorry, it wasn't clear at all. As Ubuntu repositories are frozen at each release and as its next version is scheduled for release on 17 October 2013, I preferred to focus on Fedora packages first. This time, it will include the C and .Net bindings and an effort will be make  for the unofficial ones (Python, Java, Ruby). Note that they're all already packaged for Fedora and are being reviewed at the moment. The launchpad repository will remain to bring the latest version of SFML and its bindings to older Debian/Ubuntu versions.
Title: Re: Debian/Ubuntu packages for SFML
Post by: laguna_999 on August 05, 2013, 01:15:10 am
This is great! I am amazed again and again how dedicated you are to make sfml even better!

Currently i am working in a 32Bit Debian VM, which is no problem for me. But good to hear, you are working on it.

Greetings!
Title: Re: Debian/Ubuntu packages for SFML
Post by: Sonkun on August 05, 2013, 07:43:12 pm
Haha, thank you! :) (that's how I thank SFML for being what it is ;p). More seriously, packaging SFML came from a personal need so.. it's a pleasure for me to share this work. :)
Title: Re: Debian/Ubuntu packages for SFML
Post by: Richy19 on October 06, 2013, 02:42:03 pm
Are there any updates on this? And has SFML 2.1 been merged into the stable repo?
Title: Re: Debian/Ubuntu packages for SFML
Post by: Oldie on October 10, 2013, 12:09:50 am
I second this. The official Debian packages are still SFML v1.6, even in Unstable. A growing library like SFML should be regularly updated to the latest version in the main Linux distributions.
Is there any plan to meet this demand? Is there anything we could help with?
Title: Re: Debian/Ubuntu packages for SFML
Post by: jcowgill on October 10, 2013, 09:38:12 pm
This is what I thought as well, so I created a package based on 2.1 and submitted it to Debian. It's currently in the "NEW" queue, so eventually it should be accepted (it's taking some time though).
You can see the package status here: http://packages.qa.debian.org/libs/libsfml.html (http://packages.qa.debian.org/libs/libsfml.html)
Title: Re: Debian/Ubuntu packages for SFML
Post by: Oldie on October 26, 2013, 01:16:20 am
Thank you! :)
From your link, I can see that the package was accepted in Experimental on October 17. I can also see that migrating from Unstable to Testing is usually a matter of weeks at most, according to the history of SFML 1.x in Debian.
But would anyone know the average time for a package with low urgency (the current case) to migrate from Experimental to Unstable? Just wondering when we could expect SFML 2.1 in both Unstable and Testing...
Title: Re: Debian/Ubuntu packages for SFML
Post by: jcowgill on October 26, 2013, 06:29:19 pm
Hi Oldie,
Packages don't migrate from experimental to unstable on their own - that migration is always done manually. The reason the package is still in experimental is that moving it to unstable would break the libcsfml and python-sfml packages that depend on it. I'm working on packaging those so (hopefully) they should all enter unstable within a few weeks. After that the migration from unstable to testing will be 10 days unless anyone files a serious bug.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Wabuo on October 31, 2013, 03:18:01 am
Hey

First thank you for the work.

Pls update Ubuntu ppa to 2.1!

Let heat us this one, to be sure that they will update it in the official  packages.  ;D
https://bugs.launchpad.net/ubuntu/+source/libsfml/+bug/1222563/+affectsmetoo (https://bugs.launchpad.net/ubuntu/+source/libsfml/+bug/1222563/+affectsmetoo)
Title: Re: Debian/Ubuntu packages for SFML
Post by: sky on November 10, 2013, 11:37:05 pm
Hey

First thank you for the work.

Pls update Ubuntu ppa to 2.1!

Let heat us this one, to be sure that they will update it in the official  packages.  ;D
https://bugs.launchpad.net/ubuntu/+source/libsfml/+bug/1222563/+affectsmetoo (https://bugs.launchpad.net/ubuntu/+source/libsfml/+bug/1222563/+affectsmetoo)
I've recently updated a description to meet Ubuntu new package request guides (https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages/ExamplePackageRequest).
Title: Re: Debian/Ubuntu packages for SFML
Post by: PZ-01 on November 22, 2013, 03:27:16 am
Looks like it's taking a considerable amount of time for the guys to accept 2.1 into the repository. I have resorted to compiling SFML with the source code. To my surprise after 5 minutes I had working samples on my new Crunchbang machine so at least that's good news since I accidentally installed 1.6 with aptitude.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Oldie on November 22, 2013, 07:10:23 pm
Looks like it's taking a considerable amount of time for the guys to accept 2.1 into the repository.

If you are talking about Debian, then from what I understand, SFML 2.1 depends on GLEW being updated to a newer version, currently GLEW 1.10. You can follow the updating of GLEW here: http://packages.qa.debian.org/g/glew.html (http://packages.qa.debian.org/g/glew.html).
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on November 25, 2013, 03:47:14 pm
Hello fellow developers here  ;)
I'm relatively new to developing on Linux and have troubles getting SFML to work.
I'm using Ubuntu 13.10, installed latest version of Code::Blocks via Software Center, downloaded SFML2.1 Linux Libs and installed them correctly, installed libgl libjpeg etc etc
But I cannot link any program because of the missing dependency libglew 1.5.
Installing it via apt-get install libglew-dev installs version 1.8 on my machine but code::blocks cannot link to it. Seems like libglew.so.1.5 is needed.

Can anyone tell me how to fix this problem? Very much appreciated  ;)

Cheers
Title: Re: Debian/Ubuntu packages for SFML
Post by: bob on December 26, 2013, 09:17:14 pm
I have the same problem here - glew is now 1.9 on Fedora 19/20 and 1.10 on rawhide. Also, when is 2.1 going to land to Fedora repository? Currently it is 2.0 even on rawhide.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Oldie on December 27, 2013, 12:19:30 am
SFML 2.1 is now part of Debian Testing: http://packages.qa.debian.org/libs/libsfml/news/20131222T163915Z.html (http://packages.qa.debian.org/libs/libsfml/news/20131222T163915Z.html). The current status of the package can still be seen here: http://packages.qa.debian.org/libs/libsfml.html (http://packages.qa.debian.org/libs/libsfml.html).
Of course Debian Stable will be updated to SFML 2.x only when the new version, Debian 8 aka Jessie, is released. This should happen around late 2014 or early 2015.
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on January 17, 2014, 09:01:42 am
Hey guys,

I've managed to get libGLEW to work in Code:Blocks on Ubuntu 13.10.
You need to download the source version 1.5.0 from the glew website (http://"http://glew.sourceforge.net/index.html") and build it from scratch.
After that copy the headers to /usr/include and the libraries to /usr/lib (a sudo nautilus will help greatly ;) )
and set security correct (chmod 777 on all files) and create corresponding symlinks (if not present). Marking the lib as executable is also important.

After that you can set a linker option in your project properties to link against GLEW. After that all builds will succeed.

But now there arises another problem when running the executable
/home/xxx/projects/SFML_01_Intro/bin/Debug/SFML_01_Intro: error while loading shared libraries: libGLEW.so.1.5: wrong ELF class: ELFCLASS32
WTF is now happening? Can anyone help with this? (I'm still a developer noob on Linux ;) )

Cheers and regards in advance!
Title: Re: Debian/Ubuntu packages for SFML
Post by: eXpl0it3r on January 17, 2014, 09:22:58 am
You need to download the source version 1.5.0 from the glew website (http://"http://glew.sourceforge.net/index.html") and build it from scratch.
After that copy the headers to /usr/include and the libraries to /usr/lib (a sudo nautilus will help greatly ;) )
and set security correct (chmod 777 on all files) and create corresponding symlinks (if not present). Marking the lib as executable is also important.
So instead of simply building SFML from source on your system, which would then automatically use your current GLEW version, you built GLEW from source? ??? ;D

Just get SFML's source code, run cmake to configure things, sudo make install -j4, profit! :)
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on January 17, 2014, 01:04:25 pm
 :o Ok, I understand, that would be the obvious solution to all the problems  ;D
TGIF and I can give it a shot this weekend.

Thanks in advance  :-*

Btw. I did came up with the solution to my other problem, I build a 32bit version of libGLEW instead of a 64bit version. Shame on me. This cries for a tutorial "How to setup SFML2.1 on Ubuntu correctly" ;)
Maybe I do such a tutorial after I solved my problems.

Cheers!
Title: Re: Debian/Ubuntu packages for SFML
Post by: Lo-X on January 17, 2014, 01:34:43 pm
This cries for a tutorial "How to setup SFML2.1 on Ubuntu correctly" ;)
Maybe I do such a tutorial after I solved my problems.

There's a tutorial  (http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php)

And a lot of people on the forum that asked about pre-built libs on Ubuntu all ending with the same answer, the link I just gave.

Using CMake is really easy, if you follow the tutorial step by step there isn't any problem. (I say that to everyone finding this post, sure you solved your problem SeriousITGuy)
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on May 28, 2014, 09:36:39 am
When you are like me and have problems building SFML on Linux with the official tutorial, here is now my tutorial on how to build SFML on Ubuntu correctly with every dependency:

How to setup SFML on Ubuntu 14.04 LTS (http://seriousitguy.blogspot.de/2014/05/how-to-setup-sfml-on-ubuntu-1404-lts.html)

I wrote this post two months ago, but with the release of 14.04 LTS, I decided to postpone the release of the tutorial and update it for 14.04 LTS, which I done yesterday. So here you are ;)
Title: Re: Debian/Ubuntu packages for SFML
Post by: Lolilolight on May 28, 2014, 06:20:50 pm
SFML is running very well on ubuntu 14.04 LTS. (And I must admit that it's the best thing that I never had)

It's very fast, even with multi-pass rendering. :)

Normally you have to install cmake-gui, the needed SFML dependencies, you follow the tutorial and it works.

Title: Re: Debian/Ubuntu packages for SFML
Post by: amhndu on June 07, 2014, 04:52:49 am
From : How to setup SFML on Ubuntu 14.04 LTS (http://seriousitguy.blogspot.de/2014/05/how-to-setup-sfml-on-ubuntu-1404-lts.html)

After this we need all dependencies of SFML solved. Enter the following commands (order doesn't matter)

sudo apt-get install freeglut3-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libglew-dev
sudo apt-get install libsndfile1-dev
sudo apt-get install libopenal-dev
You also have to install udev(sudo apt-get install libudev-dev) ,atleast I have to in 12.04

Also , you can set the install path on cmake as /usr/ instead of the default /usr/local/.
So you can link to sfml directly from "-lsfml-<module>".

That is the only problem most of Ubuntu users probably faced , those who can't or don't know how to set LD_LIBRARY_PATH to /usr/local/lib/ . Even a simple cut-paste to /usr/lib/ would do.
That said either it might be worth mentioning in official tutorial that if the linker couldn't find the libs , how it can be resolved in general.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Tank on June 07, 2014, 07:58:37 am
There's also "apt-get build-dep" which makes things a little easier - udev still has to be installed manually though.
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on June 11, 2014, 08:46:19 am
@amhndu: Hm I did not need to install libudev-dev, must check if something has preinstalled it, but could be a difference between 12.04 and 14.04. I will do another clean 14.04 install on my test system and check the tutorial again, maybe I oversaw something.
For the library path, I had no problem with linking although my sfml libs reside in /usr/local/lib. Maybe Code::Blocks 13.11 added it to the standard search path. Will check it also.

But good points you mentioned, will check them and update the tutorial appropriately.

@Tank: I did not know about apt-get build-dep command, looks promising. Will check it definitely, maybe it eases up the whole process. Thanks for pointing me to it.

Cheers!
Title: Re: Debian/Ubuntu packages for SFML
Post by: amhndu on June 12, 2014, 06:04:43 am
Quote
Hm I did not need to install libudev-dev
You , didn't need to , because you are not using the development version of 2.1 , it has changed recently , so you may specify that if someone downloads the source from github , then they might have to install udev. (although it's an easy guess , cmake error clearly says udev is not installed ...)

Quote
For the library path, I had no problem with linking although my sfml libs reside in /usr/local/lib. Maybe Code::Blocks 13.11 added it to the standard search path. Will check it also.
That's because you are directly specifying the libraries by their full path.
What I mean is using the linker you can specify -lsfml-<module>[-d] to gcc , so that you compile it as it's given in the official tutorial or from command line without caring where exactly are those shared libraries.
Or maybe in 14.04 /usr/local/lib is added to ld search path.
Well , can you compile this SFML Hello World example :
(click to show/hide)
using these commands on a terminal :
Code: [Select]
$ gcc -o foo foo.cpp -lsfml-graphics -lsfml-system

And yeah... I forgot to say
" Great work Sonkun !!!"
Title: Re: Debian/Ubuntu packages for SFML
Post by: cpainterwakefield on July 24, 2014, 10:46:09 am
new here, sorry if this has been addressed.

Packages for SFML 2.1 under Linux Mint 17 are slightly broken:
- needs libGLEW.so.1.5 as compiled, but only libGLEW.so.1.10 is available
- right now installing the 64-bit sfml-dev package installs the 32-bit libjpeg, not the correct 64-bit libjpeg

These are easily worked around for a reasonably experienced user, and of course I can compile the thing myself etc.  However, I'm evaluating using SFML in a classroom setting with users who are *not* experienced.  It would be nice if I could tell them to just install from the repository, rather than explaining all the extra stuff they need to do.  What is required to get the package(s) fixed?  Can I help somehow?

Thanks!
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on July 24, 2014, 11:32:07 am
If it's the package from the official repository of your OS, then send an e-mail to the package maintainer(s) or use their mailing list.
Title: Re: Debian/Ubuntu packages for SFML
Post by: cpainterwakefield on July 26, 2014, 12:17:24 am
ok, thanks, I've done that.
Title: Re: Debian/Ubuntu packages for SFML
Post by: paupav on July 27, 2014, 04:40:04 pm
new here, sorry if this has been addressed.

Packages for SFML 2.1 under Linux Mint 17 are slightly broken:
- needs libGLEW.so.1.5 as compiled, but only libGLEW.so.1.10 is available
- right now installing the 64-bit sfml-dev package installs the 32-bit libjpeg, not the correct 64-bit libjpeg

These are easily worked around for a reasonably experienced user, and of course I can compile the thing myself etc.  However, I'm evaluating using SFML in a classroom setting with users who are *not* experienced.  It would be nice if I could tell them to just install from the repository, rather than explaining all the extra stuff they need to do.  What is required to get the package(s) fixed?  Can I help somehow?

Thanks!
I had same problem when I've upgraded Linux Mint  version (from 15 to 16). They don't support version upgrades. You should always do fresh install with Mint. Thats probably only reason why I'm using Ubuntu and Arch (for Pc and laptop).
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on November 17, 2014, 09:01:34 pm
I posted an update to my previous article about setting up SFML on Ubuntu in my blog (http://seriousitguy.blogspot.de/2014/11/how-to-setup-sfml-on-ubuntu-1404-lts.html). I used the latest build from GitHub to also test for the release of 2.2. Check it out, every suggestion is welcome.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Potato on February 17, 2015, 08:21:57 pm
@Sonkun

Could you please update the PPA to the latest version of SFML. Thanks.
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on October 13, 2015, 03:43:35 pm
Ah quick shout out to all who want to compile SFML on Ubuntu 14.04.2 or .3 (Trusty with Utopic Stack enabled). There is a broken dependency in the freeglut3-dev and libglew-dev package which don't let you install said packages and therefore you cannot compile SFML on such systems at the moment. I just ran into this issue yesterday while newly installing my Linux development machine. There seems to be a workaround with the trusty-proposed ppa, but I could not get it to work until now.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on October 13, 2015, 03:45:55 pm
Quote
There is a broken dependency in the freeglut3-dev and libglew-dev package which don't let you install said packages and therefore you cannot compile SFML
SFML 2.3 doesn't depend on them.
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on October 14, 2015, 09:23:19 am
No need for glut.h anymore? That would fix this problem, cause OpenGL headers can be pulled via mesa-common-dev package. Will check it out. Thanks for pointing to it.
Title: Re: Debian/Ubuntu packages for SFML
Post by: Laurent on October 14, 2015, 09:26:48 am
The full list of dependencies of SFML 2.3 can be found here:

http://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php#installing-dependencies

And even with older versions, GLUT was only needed for examples, which can easily be skipped when configuring the build.

GLEW was used by the core libraries, but we also got rid of it. We are now generating the extension loading code ourselves, with (a modified version of) glLoadGen.
Title: Re: Debian/Ubuntu packages for SFML
Post by: SeriousITGuy on October 23, 2015, 09:53:04 am
I just want to report that I could not find a way to pull in OpenGL dev headers on Ubuntu 14.04.2 and 14.04.3 as of now. Every package that wants to pull them complains about unsatisfied dependencies with libcheese and libgtk, which seems to be a bug in aptitude at the moment.
Will continue searching for a solution. If anyone has any hint, I would glady appreciate it.  ;)