Skip to content

Commit 12b33c8

Browse files
committed
add linux build instructions to README.md
1 parent 6b222fc commit 12b33c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ git clone --recursive [email protected]:openmultiplayer/open.mp
4646

4747
Note the use of the `--recursive` argument, because this repository contains submodules.
4848

49+
If you don't use this parameter, you will need to download the files manually and place them in their respective folders, or you will encounter errors during the build process.
50+
Submodule folders: `open.mp/libs`, `open.mp/SDK`, `open.mp/SDK/lib`, `open.mp/Shared/Network`
51+
52+
4953
## Building on Windows
5054

5155
```bash
@@ -70,6 +74,16 @@ cmake -DCMAKE_BUILD_TYPE=Release ..
7074
make
7175
```
7276

77+
## Building on Linux (with Docker)
7378

79+
Replace `/home/user/open.mp` with your actual path in the last command `docker run`
7480

81+
```bash
82+
cd open.mp
83+
mkdir build
84+
cd docker/build_ubuntu-18.04
85+
docker build -t openmp .
86+
docker run --rm -ti -v /home/user/open.mp:/omp -w /omp openmp
87+
```
7588

89+
After that, in `./open.mp/build/Output/Release/Server`, you will find the `omp-server` file and the `components/` folder.

0 commit comments

Comments
 (0)