This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:compiling_and_running_2.0 [2020-12-22 12:36] – [Compiling and running Doomsday 2.0–2.2 with CMake] skyjake | devel:compiling_and_running_2.0 [2021-09-01 05:37] (current) – skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Compiling and running Doomsday 2.0–2.3 with CMake ====== | ||
+ | Doomsday 2 is built with [[https:// | ||
+ | |||
+ | ===== Get the source ===== | ||
+ | |||
+ | There are a couple of ways to get the source code: | ||
+ | |||
+ | * Download a [[http:// | ||
+ | * Check out the [[https:// | ||
+ | |||
+ | ===== Install dependencies ===== | ||
+ | |||
+ | The following libraries are required for compilation: | ||
+ | |||
+ | * Qt 5 (modules: Core, Network, Gui, OpenGLExtensions, | ||
+ | * Qt 5 X11Extras module (on Unix/X11) | ||
+ | * DirectX (on Windows) | ||
+ | |||
+ | The following are optional: | ||
+ | |||
+ | * SDL 2 (joystick support) | ||
+ | * SDL_mixer 2 (audio plugin) | ||
+ | * FMOD Studio Low-Level Programmer API for Doomsday 2.1+, or FMOD Ex for Doomsday 2.0 or earlier (audio plugin) | ||
+ | * OpenAL (audio plugin) | ||
+ | * libXrandr and libXxf86vm (X11 display mode support) | ||
+ | |||
+ | ===== Create build directory ===== | ||
+ | |||
+ | You must create a separate directory that is used for the build files. In-tree builds are not supported. | ||
+ | ===== Build and deploy ===== | ||
+ | |||
+ | After the dependencies are available, run CMake and configure the appropriate build variables. The following variables are noteworthy: | ||
+ | |||
+ | * Normally you will want to set the '' | ||
+ | * Set the '' | ||
+ | * Set the '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | When CMake has configured the build successfully, | ||
+ | |||
+ | After building, you must still deploy the binaries (e.g., using '' |