From 8783efe24ba96c6d78723ccad3bf62595847df51 Mon Sep 17 00:00:00 2001 From: STAM Date: Mon, 14 Jul 2025 17:32:34 +0300 Subject: [PATCH] Updated Compilling metamod r (markdown) --- Compilling-metamod-r.md | 91 +++++++++++++++++++++++++++-------------- 1 file changed, 60 insertions(+), 31 deletions(-) diff --git a/Compilling-metamod-r.md b/Compilling-metamod-r.md index e1c01e9..57920ec 100644 --- a/Compilling-metamod-r.md +++ b/Compilling-metamod-r.md @@ -1,40 +1,69 @@ ## [![](https://i.imgur.com/ou0wy1S.png)](https://github.com/theAsmodai/metamod-r/wiki/English-version) Back -## Build instructions for metamod-r - -#### There are several software requirements for building rehlds: - -- [x] [Java Development Kit \ JDK 7+](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) -- [x] ![](https://i.imgur.com/t23p9tU.png) Windows: [Visual Studio 2015](https://www.visualstudio.com/vs/older-downloads/) and [later](https://www.visualstudio.com/downloads/) -- [x] ![](https://i.imgur.com/AzhAYR4.png) Linux: [Intel C++ Compiler 13](https://software.intel.com/en-us/c-compilers) and later - -*** - +## Build instructions ### Checking requirements -#### JDK version -![](https://i.imgur.com/t23p9tU.png) Windows -
> %JAVA_HOME%\bin\javac -version
-javac 1.8.0_25
+There are several software requirements for building Metamod-r:
+
+#### Windows
+
+Visual Studio 2015 (C++14 standard) and later
 
-![](https://i.imgur.com/AzhAYR4.png) Linux -
$ javac -version
-javac 1.7.0_65
+#### Linux
+
+git >= 1.8.5
+cmake >= 3.10
+GCC >= 4.9.2 (Optional)
+ICC >= 15.0.1 20141023 (Optional)
+LLVM (Clang) >= 6.0 (Optional)
 
-#### Visual Studio -- Help -> About - -#### ICC -
$ icc --version
-icc (ICC) 15.0.1 20141023
-
- -*** - ### Building -![](https://i.imgur.com/t23p9tU.png) Windows: -
gradlew --max-workers=1 clean buildRelease
-![](https://i.imgur.com/AzhAYR4.png) Linux (ICC): -
./gradlew --max-workers=1 clean buildRelease
\ No newline at end of file +#### 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 + +
    +
  • +Installing required packages +
    +sudo dpkg --add-architecture i386
    +sudo apt-get update
    +sudo apt-get install -y gcc-multilib g++-multilib
    +sudo apt-get install -y build-essential
    +sudo apt-get install -y libc6-dev libc6-dev-i386
    +
    +
  • + +
  • +Select the preferred C/C++ Compiler installation +
    +1) sudo apt-get install -y gcc g++
    +2) sudo apt-get install -y clang
    +
    +
  • +
+ +
\ No newline at end of file