diff --git a/pages/tutorials/3.0/getting-started/linux.md b/pages/tutorials/3.0/getting-started/linux.md index c259ea256..dccd8bd78 100644 --- a/pages/tutorials/3.0/getting-started/linux.md +++ b/pages/tutorials/3.0/getting-started/linux.md @@ -99,6 +99,22 @@ If you installed SFML to a non-standard path, you'll need to tell the linker whe ``` g++ main.o -o sfml-app -L/lib -lsfml-graphics -lsfml-window -lsfml-system ``` +If you want to have SFML directly integrated into your executable, you must link to the static version. Static SFML libraries have the "-s" suffix, for example: "sfml-xxxx-s". +You will also need to link the dependencies of each sfml module. + + +| Module | Dependencies | +|-----------------|--------------| +| sfml-graphics-s |
  1. sfml-window-s
  2. freetype
  3. sfml-system-s
| +| sfml-window-s |
  1. sfml-system-s
  2. Xi
  3. X11
  4. Xrandr
  5. Xcursor
  6. udev
| +| sfml-system-s || +| sfml-network-s |
  1. sfml-system-s
| +| sfml-audio-s |
  1. sfml-system-s
  2. FLAC
  3. vorbisenc
  4. vorbisfile
  5. vorbis
  6. ogg
| + +Example with sfml-window and sfml-system. +``` +g++ main.o -o sfml-app -lsfml-window-s -lsfml-system-s -lXi -lX11 -lXrandr -lXcursor -ludev +``` We are now ready to execute the compiled program: