Skip to content

Richardds/Sandbox

Repository files navigation

Sandbox

Semestral project of BI-PGR course on CTU in Prague, FIT.

Development setup

Create DEV_HOME environment variable containing the path to the folder, which has the following structure:

  • Include
  • Library

This project requires following external libraries to be available.

Dependencies

Install gli into External directory.

Ubuntu / Debian

apt install libglfw3-dev libglew-dev libglm-dev zlib1g-dev libassimp-dev libyaml-cpp-dev libbullet-dev

Arch

pacman -Sy glfw-x11 glew glm zlib assimp yaml-cpp bullet

Assessment

Assessment

Assessment

Assessment

Assessment

Assessment

Build

Install gli (559cbe1) library into "External" directory (External/gli/gli.hpp). You can use the following shell script bellow (Linux only)

PROJECT_DIR="$(pwd)"
TMP_DIR="$(mktemp -d)"
pushd "${TMP_DIR}"
wget -O gli.zip https://github.com/g-truc/gli/archive/559cbe1ec38878e182507d331e0780fbae5baf15.zip
unzip -q gli.zip
cp -r gli-559cbe1ec38878e182507d331e0780fbae5baf15/gli "${PROJECT_DIR}/External"
popd
rm -r "${TMP_DIR}"

Continue to subsection based on your platform.

Linux (Ubuntu)

Install dependencies using apt.

apt-get install -y cmake ninja-build libglew-dev libglfw3-dev libglm-dev zlib1g-dev libassimp-dev libyaml-cpp-dev libbullet-dev

Generate project with CMake (Ninja generator)

cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -B Build

Build

cmake --build Build -- -j$(nproc)

Windows

Install dependencies using vcpkg

vcpkg install --triplet x64-windows glew glfw3 glm zlib assimp yaml-cpp bullet3

Generate project with CMake

cmake -DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake -B Build

Build

cmake --build Build