[Project Guidelines and Rules]
In order to develop code for the game, you will need several elements on your computer :
Choose what you want.
Don't forget to set your user name and email if you want to commit.
$ git config user.name="username"
$ git config user.email="youremail"
Freesynd is developed using C++20.
Please consult [Guiding principles and decisions] for the list of supported compilers.
You can use one of them but using Ninja is really faster than Makefile
Look at the [CMake cheatsheet]
The following libraries are needed in their development version :
* SLD 2
* SDL2_Mixer
* SDL2_Image
* Png
You can install the different libraries using the following commands :
# Install SDL 2
sudo apt-get -y install libsdl2-dev
# Install SDL_Mixer
sudo apt-get -y install libsdl-mixer2-dev
# Install SDL_Image
sudo apt-get -y install libsdl-image2-dev
# Install PNG
sudo apt-get -y install libpng-dev
You don't need to download anything. All libraries needed for developing and running the game are availing in the source reposition in /extern/.
For SDL2, you can use Homebrew :
# Install SDL 2
brew install sdl2
# Install SDL_Mixer
brew install sdl2_mixer
# Install SDL_Image
brew install sdl2_image
# Install PNG (but should be installed by SDL_Image
brew install libpng
cmake -S . --preset <code-blocks-preset>
or you can use only the Cmake generator
For Makefile :
$ cmake -S . -B <build_dir> -G "CodeBlocks - Unix Makefiles"
For Ninja:
$ cmake -S . -B <build_dir> -G "CodeBlocks - Ninja"
<build_dir>
and select Freesynd.cbpchoco install vscode
code .
. This will open VS Code.code .
. This will open VS Code.
Wiki: CMake cheatsheet
Wiki: Guiding principles and decisions
Wiki: Project Guidelines and Rules