--- id: metamod-r-compilling title: Compilling sidebar_position: 5 description: Metamod-r is an optimized version of the original Metamod, enhancing performance and compatibility for Half-Life 1 servers. slug: /metamod-r/compilling --- # Build instructions ### Checking requirements There are several software requirements for building Metamod-r: #### Windows
Visual Studio 2015 (C++14 standard) and later
#### Linux
git >= 1.8.5
cmake >= 3.10
GCC >= 4.9.2 (Optional)
ICC >= 15.0.1 20141023 (Optional)
LLVM (Clang) >= 6.0 (Optional)
### Building #### Windows Use `Visual Studio` to build, open `msvc/metamod.sln` and just select from the solution configurations list `Release` or `Debug` #### Linux * Optional options using `build.sh --compiler=[gcc] --jobs=[N] -D[option]=[ON or OFF]` (without square brackets)
-c=|--compiler=[icc|gcc|clang]  - Select preferred C/C++ compiler to build
-j=|--jobs=[N]                  - Specifies the number of jobs (commands) to run simultaneously (For faster building)

Definitions (-D)
DEBUG                           - Enables debugging mode
USE_STATIC_LIBSTDC              - Enables static linking library libstdc++
* ICC
./build.sh --compiler=intel
* LLVM (Clang)
./build.sh --compiler=clang
* GCC
./build.sh --compiler=gcc
##### Checking build environment (Debian / Ubuntu)
Click to expand