mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
BeamNG-MP-Server
Unix specific build instructions
- You need boost >= 1.70.0
Check with your ditro's package manager whether it provides this. If it does, you should use that.
If it doesnt provide it or you want to link it statically (like we do with our releases), then you have to do this:
download the latest boost source code. Then, go to the downloaded directory and run
b2 link=static runtime-link=static threading=multi
And then either symlink, edit CMakeLists to find it, or simply run
b2 link=static runtime-link=static threading=multi install
(warning: installs boost into your system, you might not want this).
Then on invocation of cmake, ensure that you define Boost_USE_STATIC_RUNTIME=ON
.
- Building
Run cmake, and then make.
Example:
~/src/Server $ cmake -S . -B bin -DCMAKE_BUILD_TYPE=Release
...
~/src/Server $ make -C bin -j 5
Languages
C++
92.9%
CMake
4.2%
C
1.2%
Shell
1%
Lua
0.7%