This is a Switch port of the SFML libraries
Before building, you must have devKitPro setup.
You only need libNX to build, but you need these libraries to link against:
- OpenAL / MojoAL
- SDL2 (if using MojoAL)
- Vorbis libraries
- Nouveau DRM driver
Make build directory:
Run CMake to generate makefile:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/DevkitA64Libnx.cmake
make -j 8
Static libraries were generated in the lib/ folder.
I usually copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.