mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-07-22 05:06:16 +03:00
Updated Compilling metamod r (markdown)
parent
cc8d768457
commit
8783efe24b
@ -1,40 +1,69 @@
|
|||||||
## [](https://github.com/theAsmodai/metamod-r/wiki/English-version) Back
|
## [](https://github.com/theAsmodai/metamod-r/wiki/English-version) Back
|
||||||
|
|
||||||
## Build instructions for metamod-r
|
## Build instructions
|
||||||
|
|
||||||
#### 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]  Windows: [Visual Studio 2015](https://www.visualstudio.com/vs/older-downloads/) and [later](https://www.visualstudio.com/downloads/)
|
|
||||||
- [x]  Linux: [Intel C++ Compiler 13](https://software.intel.com/en-us/c-compilers) and later
|
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
### Checking requirements
|
### Checking requirements
|
||||||
#### JDK version
|
There are several software requirements for building Metamod-r:
|
||||||
 Windows
|
|
||||||
<pre>> %JAVA_HOME%\bin\javac -version
|
#### Windows
|
||||||
javac 1.8.0_25
|
<pre>
|
||||||
|
Visual Studio 2015 (C++14 standard) and later
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
 Linux
|
#### Linux
|
||||||
<pre>$ javac -version
|
<pre>
|
||||||
javac 1.7.0_65
|
git >= 1.8.5
|
||||||
|
cmake >= 3.10
|
||||||
|
GCC >= 4.9.2 (Optional)
|
||||||
|
ICC >= 15.0.1 20141023 (Optional)
|
||||||
|
LLVM (Clang) >= 6.0 (Optional)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
#### Visual Studio
|
|
||||||
- Help -> About
|
|
||||||
|
|
||||||
#### ICC
|
|
||||||
<pre>$ icc --version
|
|
||||||
icc (ICC) 15.0.1 20141023
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
 Windows:
|
|
||||||
<pre>gradlew --max-workers=1 clean buildRelease</pre>
|
|
||||||
|
|
||||||
 Linux (ICC):
|
#### Windows
|
||||||
<pre>./gradlew --max-workers=1 clean buildRelease</pre>
|
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)
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
-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)
|
||||||
|
|
||||||
|
<sub>Definitions (-D)</sub>
|
||||||
|
DEBUG - Enables debugging mode
|
||||||
|
USE_STATIC_LIBSTDC - Enables static linking library libstdc++
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
* ICC <pre>./build.sh --compiler=intel</pre>
|
||||||
|
* LLVM (Clang) <pre>./build.sh --compiler=clang</pre>
|
||||||
|
* GCC <pre>./build.sh --compiler=gcc</pre>
|
||||||
|
|
||||||
|
##### Checking build environment (Debian / Ubuntu)
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Installing required packages
|
||||||
|
<pre>
|
||||||
|
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
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
Select the preferred C/C++ Compiler installation
|
||||||
|
<pre>
|
||||||
|
1) sudo apt-get install -y gcc g++
|
||||||
|
2) sudo apt-get install -y clang
|
||||||
|
</pre>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</details>
|
Loading…
x
Reference in New Issue
Block a user