1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix typo

Margen67
2021-07-15 16:45:49 -10:00
parent eb05a51695
commit b87626ebb9

@@ -6,7 +6,7 @@ This page tells you how to build the project. For instructions on how to get ass
To build natively on Linux, you will need a set of libraries set up. Since most distributions come with a package manager, we expect you to use that. Required libraries include:
Package | Note(s)
------- | -------
`sdl2` | Only for UI client)
`sdl2` | Only for UI client.
`freetype` | Can be disabled.
`fontconfig` | Can be disabled.
`libzip` | >= 1.0
@@ -98,7 +98,7 @@ sudo eopkg install sdl2-devel curl-devel libspeex-devel fontconfig-devel libpng-
## Compiling
```
mkdir build && cd build
cmake .. # remember to set your build flags, e.g. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake .. # Remember to set your build flags, e.g. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make
```
This will generate a `openrct2` binary in the `build` directory. To run you have two options: `make install` or running it locally.
@@ -139,8 +139,7 @@ ln -s ../data data
Building with clang works the same way as building with GCC, you just need to change the CXX environment variable. Keep in mind, that you need to have an empty build directory as cmake will not switch compilers after it has already generated a Makefile.
```
mkdir build && cd build
export CXX=$(which clang++)
# OpenRCT2 is purely a C++ project, there's no need to set CC
export CXX=$(which clang++) # OpenRCT2 is purely a C++ project, there's no need to set CC
cmake ..
make
```
@@ -149,10 +148,9 @@ See the optimization note above.
### Ninja
You can switch from Make to Ninja, if you prefer:
```
mkdir build
cd build
cmake ../ -G Ninja #any other arguments you want, for example -DCMAKE_BUILD_TYPE=RelWithDebInfo
ninja #No need to specify parallel, it does that automatically
mkdir build && cd build
cmake .. -G Ninja #any other arguments you want, for example -DCMAKE_BUILD_TYPE=RelWithDebInfo
ninja # No need to specify parallel, it does that automatically
DESTDIR=. ninja install
```