-
Notifications
You must be signed in to change notification settings - Fork 25
Installation
seedhartha edited this page Aug 5, 2024
·
100 revisions
Requirements:
- Compiler with C++17 support (VS2019, GCC, Clang, etc.)
- CMake
Dependencies:
-
Boost ≥ 1.65
- Boost.Algorithm
- Boost.Endian
- Boost.Format
- Boost.Functional
- Boost.Program_options
- SDL2
- GLM
- GLEW
- OpenAL
- MAD
- FFmpeg
- TinyXML-2
- wxWidgets ≥ 3.0
- GoogleTest
Note: RelWithDebInfo configuration is much faster than Debug, regardless of OS.
- Install Visual Studio 2019 or later
- Install CMake
- Install vcpkg
- Install dependencies:
./vcpkg install --triplet x64-windows boost-algorithm boost-endian boost-format boost-functional boost-program-options glm sdl2 glew openal-soft libmad ffmpeg wxwidgets gtest
- Generate project files:
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]\scripts\buildsystems\vcpkg.cmake
- Install Clang or GCC
- Install CMake
- Install dependencies:
sudo apt install libboost-all-dev libsdl2-dev libglew-dev libopenal-dev libmad0-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libwxgtk3.0-gtk3-dev libgmock-dev
- Generate Makefiles:
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo
- Install Clang or GCC
- Install CMake
- Install dependencies:
sudo dnf install boost-devel SDL2-devel glew-devel openal-soft-devel libmad-devel ffmpeg-devel wxGTK3-devel libatomic gmock-devel
- Generate Makefiles:
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo
Build from source or install this package.
From source:
- Install Clang or GCC
- Install CMake
- Install dependencies:
sudo zypper in boost-devel libboost_program_options-devel libSDL2-devel glew-devel openal-soft-devel libmad-devel wxWidgets-3_0-devel gmock
- Generate Makefiles:
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_VIDEO=OFF
Note: FFmpeg packages in openSUSE do not support Bink Video, hence video playback must be disabled. As a workaround, compile FFmpeg from source and specify absolute library paths in CMakeLists.txt
.
- Install Xcode Command Line Tools
- Install Homebrew
- Install CMake
- Install dependencies:
brew install boost sdl2 glew openal-soft mad ffmpeg wxwidgets googletest
- Generate Makefiles:
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo
- In case of OpenAL not being found, run:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/openal-soft/YOUR_OPENAL_VERSION/lib/pkgconfig
- In case of linking errors, add libraries to library search path
export LDFLAGS="$LDFLAGS -L/usr/local/Cellar/sdl2/YOUR_SDL2_VERSION/lib"
export LDFLAGS="$LDFLAGS -L/usr/local/Cellar/openal-soft/YOUR_OPENAL_VERSION/lib"
export LDFLAGS="$LDFLAGS -L/usr/local/Cellar/ffmpeg/YOUR_FFMPEG_VERSION/lib"
Name | Description | Default Value |
---|---|---|
BUILD_DATAMINER | Build dataminer executable | ON |
BUILD_TOOLKIT | Build toolkit executable | ON |
BUILD_LAUNCHER | Build launcher executable | ON |
BUILD_TESTS | Build tests | ON |
ENABLE_VIDEO | Enable video playback | ON |
ENABLE_ASAN | Enable address sanitizer (MSVC, Clang) | OFF |