A hobby 2D game engine written in C++.
Project dependencies are downloaded and linked automatically via vcpkg and CMake.
A C/C++ compiler with C++20 support (e.g. MSVC, GCC, or Clang)
- Clone the
vcpkggit repository.
git clone https://github.com/microsoft/vcpkg.git vcpkg
- Run the
vcpkgboostrap script.
cd vcpkg
.\bootstrap-vcpkg.bat
- Set the
VCPKG_ROOTenvironment variable and add it toPATH.
$env:VCPKG_ROOT = "C:\path\to\vcpkg"
$env:PATH = "$env:VCPKG_ROOT;$env:PATH"
Note
Setting environment variables in this manner only affects the current terminal session. To make these changes permanent across all sessions, set them through the Windows System Environment Variables panel.
- Open a new terminal and verify.
vcpkg --version
Go to cmake.org and download the x86-x64 Windows installer.
The cmake environment variable will be configured automatically.
- Install prerequisites.
sudo apt update
sudo apt install build-essential cmake ninja-build pkgconf curl zip unzip tar
- Install dependencies for building
SDL3from source.
On Linux SDL3 requires additional features for integration with the desktop stack - sdl3[core,ibus,x11,wayland,alsa].
In order for vcpkg to build them from source you need to install additional dependencies.
sudo apt install python3 python3-venv python3-pip
sudo apt install autoconf autoconf-archive automake libtool
sudo apt install libibus-1.0-dev
sudo apt install libx11-dev libxext-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxfixes-dev libxrender-dev libxss-dev libxxf86vm-dev libxtst-dev
sudo apt install libwayland-dev wayland-protocols libxkbcommon-dev libegl1-mesa-dev libdecor-0-dev
sudo apt install libasound2-dev libpulse-dev libpipewire-0.3-dev libjack-jackd2-dev
- Clone the
vcpkggit repository.
git clone https://github.com/microsoft/vcpkg.git ~/.vcpkg
- Run the
vcpkgboostrap script.
cd ~/.vcpkg
./bootstrap-vcpkg.sh
- Set the
VCPKG_ROOTenvironment variable and add it toPATH.
echo 'export VCPKG_ROOT="$HOME/.vcpkg"' >> ~/.bashrc
echo 'export PATH="$PATH:$VCPKG_ROOT"' >> ~/.bashrc
- Reload and verify.
source ~/.bashrc
vcpkg --version
- Install prerequisites.
xcode-select --install
brew install cmake ninja pkgconf
- Clone the
vcpkggit repository.
git clone https://github.com/microsoft/vcpkg.git ~/.vcpkg
- Run the
vcpkgboostrap script.
cd ~/.vcpkg
./bootstrap-vcpkg.sh
- Set the
VCPKG_ROOTenvironment variable and add it toPATH.
echo 'export VCPKG_ROOT="$HOME/.vcpkg"' >> ~/.zshrc
echo 'export PATH="$PATH:$VCPKG_ROOT"' >> ~/.zshrc
- Reload and verify.
source ~/.zshrc
vcpkg --version