1.5 KiB
1.5 KiB
Exercise: Set up development environment
Install tools
All Platforms
- Follow the instructions to install VSCode from https://code.visualstudio.com/
Ubuntu 20.04 or newer
- Install the build tools
sudo apt-get install ninja-build pkg-config curl zip unzip tar cmake build-essential libx11-dev libxrandr-dev libxi-dev libudev-dev libgl1-mesa-dev
Fedora 33 or newer
- Install the build tools
sudo dnf install ninja-build SFML-devel libXi-devel libX11-devel libXrandr-devel mesa-libGL-devel systemd-devel
FreeBSD 12 or newer
- Install the build tools
sudo pkg install catch cmake libfmt ninja sfml
Windows:
- Follow the instructions to install cmake (3.21) from https://cmake.org/download/
- Install Visual Studio https://visualstudio.microsoft.com/ You might have to reboot your computer once that's done.
Mac
- Install clang by typing
xcode-select --install
in a terminal and following the instructions - Install the build tools
brew install cmake ninja
- Follow the instructions for Launching VSCode from the command line
Configure and build project
All Platforms, using VS Code
git clone https://github.com/mod-cpp/pacman.git
cd pacman
code .
Commandline based build (Not used in this training) Linux, BSD, or Mac
git clone https://github.com/mod-cpp/pacman.git
cd pacman
cmake .
make