From b87626ebb9fef2f00aff173f4e07eef983e76389 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Thu, 15 Jul 2021 16:45:49 -1000 Subject: [PATCH] Fix typo --- Building-OpenRCT2-on-Linux.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Building-OpenRCT2-on-Linux.md b/Building-OpenRCT2-on-Linux.md index 1d6c2b7..b1ff36c 100644 --- a/Building-OpenRCT2-on-Linux.md +++ b/Building-OpenRCT2-on-Linux.md @@ -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 ```