This project is meant to be a ready to run WizEngine template project for Windows, Linux and Switch. You can clone or fork this repo and start making your game. All dependencies (SFML, WizEngine) are handled by the project.
cd client
cmake -B build -S .
cd build
make
cd ..
This will produce an executable and copy required assets in the folder client/bin/<your platform>/
. (e.g. client/bin/linux64
on 64 bits Linux systems)
cd bin/<your platform>/
./<Executable name> # Name will change according to your project name
Make sure you distribute all files that are in the bin/<your platform>
folder. .so, .dll and res/ folder are all required by the game.
This development setup only needs to be done once for the Switch. After this you can just build according to the method below.
For Ubuntu:
Download Debian install package here
sudo dpkg -i devkitpro-pacman.amd64.deb
For ArchLinux:
Customize your existing pacman installation using this guide: https://devkitpro.org/wiki/devkitPro_pacman
sudo dkp-pacman -S switch-dev
(Hit enter to use all repositories by default)
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=/opt/devkitpro/devkitARM
export DEVKITPPC=/opt/devkitpro/devkitPPC
sudo dkp-pacman -S switch-sdl2 switch-sdl2_mixer switch-glad switch-bzip2 switch-zlib switch-mesa switch-libpng switch-libogg switch-flac switch-glm switch-sdl2_image switch-sdl2_ttf switch-libvorbis switch-openal-soft
If library is custom and thus not found using pacman, copy .a files to $DEVKITPRO/portlibs/switch/lib
Install the WizEngine using the following commands. This will install sfml as well at the same time.
git clone https://github.com/WinterAlexander/WizEngine
cd WizEngine
./switch-install.sh
This procedure should have copied the following files
libWizEngine.a
libsfml-audio.a
libsfml-graphics.a
libsfml-network.a
libsfml-system.a
libsfml-window.a
to the directory $DEVKITPRO/portlibs/switch/lib/
. Make sure they are present after this script has run.
Go here for the latest release and copy the .a file to $DEVKITPRO/portlibs/switch/lib
This completes the installation setup.
/opt/devkitpro/tools/bin/nxlink -s path/to/homebrew.nro
cd client
make
Use the produced .nro file in the folder client/bin/switch/
to run onto your switch or open with Yuzu.
TODO