SFML community forums
Help => General => Topic started 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 ;)
-
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
-
If you don't know the basics of CMake, you'll have to look it up.
I'll do that thx :D
-
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...
-
Here's what I need to do for fresh system (Ubuntu), in case someone stumbles upon this thread:
sudo apt install libfreetype6-dev libxrandr-dev libudev-dev libogg-dev
libflac-dev libvorbis-dev libopenal-dev freeglut3-dev