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

Author Topic: SFML 2.3.2 compilation  (Read 4422 times)

0 Members and 1 Guest are viewing this topic.

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
SFML 2.3.2 compilation
« 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 ;)
« Last Edit: June 19, 2019, 02:32:02 pm by Mindiell »
Mindiell
----

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11008
    • View Profile
    • development blog
    • Email
Re: SFML 2.3.2 compilation
« Reply #1 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Re: SFML 2.3.2 compilation
« Reply #2 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
Mindiell
----

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Re: SFML 2.3.2 compilation
« Reply #3 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...
« Last Edit: June 19, 2019, 04:25:24 pm by Mindiell »
Mindiell
----

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: SFML 2.3.2 compilation
« Reply #4 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
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler