SFML community forums

Help => General => Topic started by: Mindiell on June 19, 2019, 02:29:55 pm

Title: SFML 2.3.2 compilation
Post by: Mindiell on June 19, 2019, 02:29:55 pm
Hi everybody,

I'm trying to compile SFML 2.3.2 in order to compile the python-sfml binding.
My question is that the tuto is quite not explicit : what command should I go with in order to compile SFML ?

I tried cmake ./ but get an error about udev (lib is installed).

PS: I'm on a nearly fresh install on VirtualBox, my aim being to be sure to know how to compile it. Since my laptop has SFML compiled but it was a long (very long) time ago ;)
Title: Re: SFML 2.3.2 compilation
Post by: eXpl0it3r on June 19, 2019, 02:39:20 pm
There's isn't necessarily just "one" command. You simply have to use CMake in whatever way works best for your environment. If you don't know the basics of CMake, you'll have to look it up.

We also have the CMake tutorial that shows the different CMake options: https://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php
Title: Re: SFML 2.3.2 compilation
Post by: Mindiell on June 19, 2019, 02:43:55 pm
If you don't know the basics of CMake, you'll have to look it up.
I'll do that thx :D
Title: Re: SFML 2.3.2 compilation
Post by: Mindiell on June 19, 2019, 04:16:33 pm
Ok, finally everything should be fine, compilation has ended without any problem.

But... It seems I don't have any "install" option... Sorry for disturbing everybody here, but it's clearly "not easy" to use :P

Ah, apparently I did a mistake, I have this command in the makefile, my bad...
Title: Re: SFML 2.3.2 compilation
Post by: Elias Daler on June 20, 2019, 06:20:43 pm
Here's what I need to do for fresh system (Ubuntu), in case someone stumbles upon this thread:

Code: [Select]
sudo apt install libfreetype6-dev libxrandr-dev libudev-dev libogg-dev
libflac-dev libvorbis-dev libopenal-dev freeglut3-dev