SFML on Atom


#1

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


#2

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


#3

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.


#4


#5

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


#6


#7

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.


#8

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!


#9

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