install sfml2

Hi, how do I go about installing sfml2 for development purposes?

https://www.sfml-dev.org/download/sfml/2.5.1/

Easiest way was to install the files for gcc in the local directory and it compiled perfectly from the instructions: https://www.sfml-dev.org/tutorials/2.5/start-linux.php

Thanks!

Hi
Even easier on Tumbleweed;


zypper in sfml2-devel

No compiling required… now you have to maintain the version you installed… :wink:

Thank you for the reply. Any idea where it installs the cpp header files? Tried installing this way previously but it did not see the sfml2 files for program compilation.

Hi
Should be down in /usr/include/SFML but they are hpp files? Using pkg-config should sort it all out?

More than likely you don’t need to install the “-devel” files.
Those are necessary only if you want to modify the sfml language in some way.
I assume you don’t want to do that, more typically you just want to use sfml to develop apps…

https://software.opensuse.org/search?utf8=✓&baseproject=ALL&q=sfml

TSU