SFML on Atom

Hi, Does anyone know how to get sfml to work on atom?

You might need to provide some more information about what SFML is and what it would look like for it to work “on” Atom.

Hi, so sfml is a library to make games on. I am able to link the libraries to run but this is the error i get in the command prompt ill post a screen shot.

I’m not sure what this has to do with Atom.

Atom does not have any capability to compile code. Therefore, you must be using a package, but you’re not telling me which package you’re using. Additionally, since you aren’t able to get SFML to work via the command line, you should first figure out how to make that work by asking in a forum frequented by SFML users. Once you know the procedure to make it work via the command line, then people here can tell you how to use one or more of the packages available for Atom to do the same process through the editor.

I figured a way to solve this on Ubuntu Linux, commenting here for posterity:

  • Install the gpp-compiler package on Atom
  • Install SFML: sudo apt-get install libsfml-dev
  • On Atom: Installed Packages > Gpp-compiler > Settings > C++ Compiler Options > add the following:
    -lsfml-graphics -lsfml-window -lsfml-system
    (plus other libraries if needed)

That’s it!

1 Like

For Manjaro distros is required to do the next things:

  • sudo pacman -S sfml
  • install gpp-compiler package for Atom
  • Installed Packages > Gpp-compiler > Settings > C++ Compiler Options > add the following:
    -lsfml-graphics -lsfml-window -lsfml-system

Hey guys!

There’s a package called sfml-compiler that compiles SFML on Atom. The repository has full documentation about it.
Take a look: https://github.com/brhaka/sfml-compiler

Also, for anyone trying to make this work on Mac, I wrote a Gist explaining how to do it.

Link to Gist