This is a Switch port of the SFML libraries
Dependencies
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)
- LibNX
- FLAC
- Vorbis libraries
- LibOGG
- Mesa
- LibPNG
- ZLib
- Nouveau DRM driver
- GLAD
- BZip2
Building
Make build directory:
mkdir build
Run CMake to generate makefile:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/DevkitA64Libnx.cmake
Build binaries:
make -j 8
Static libraries were generated in the lib/ folder.
Usage
I usually copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.
by TomBebb.