Skip to content
hcorion edited this page Sep 23, 2016 · 4 revisions

Linux

Build SFML and CSFML on Linux

If you don't want to install the libraries globally, you will need the following script run.sh to run your project.

#!/bin/bash

SFML_LIB=$(realpath "path/to/SFML/lib")
CSFML_LIB=$(realpath "path/to/CSFML/lib")

F=${1%.*}

LD_LIBRARY_PATH="$SFML_LIB:$CSFML_LIB" nim c --verbosity:0 $F.nim &&
LD_LIBRARY_PATH="$SFML_LIB:$CSFML_LIB" ./$F

Use it like: ./run.sh program.nim

Windows

Download CSFML and put the DLLs in the folder with the executable.

Clone this wiki locally