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

Replace 'jansson' package with 'nlohmann-json' equivalents in distro instructions

Aaron van Geffen
2020-10-16 10:26:10 +02:00
parent 191d8358e3
commit 3603bde00d

@@ -30,7 +30,7 @@ This solution is tested continuously by Travis.
The exact package names will differ from distribution to distribution, but here's a short list of the common ones:
```
sudo apt-get install --no-install-recommends -y cmake libsdl2-dev libicu-dev \
gcc pkg-config libjansson-dev libspeex-dev libspeexdsp-dev libcurl4-openssl-dev \
gcc pkg-config libspeex-dev libspeexdsp-dev libcurl4-openssl-dev \
libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libssl-dev libzip-dev \
build-essential make duktape-dev nlohmann-json3-dev libbenchmark-dev
```
@@ -43,13 +43,13 @@ This solution is tested continuously with our own dockerfile and then travis.
Install dependencies:
```
sudo pacman -S sdl2 curl jansson speexdsp fontconfig libpng openssl libzip gcc gcc-libs icu duktape
sudo pacman -S sdl2 curl nlohmann-json speexdsp fontconfig libpng openssl libzip gcc gcc-libs icu duktape
```
### DNF (Fedora):
Run the following for dependencies, then proceed with Linux build instructions.
```
sudo dnf install gcc gcc-c++ jansson-devel \
sudo dnf install gcc gcc-c++ json-devel \
openssl-devel SDL2-devel libicu-devel \
speexdsp-devel libcurl-devel \
cmake fontconfig-devel freetype-devel \
@@ -69,7 +69,7 @@ On `amd64` you first need to enable multilib and then add `abi_x86_32` to at lea
```
# cat /etc/portage/package.use/abi_x86_32
## Please note that this library list may be incomplete due to USE flag differences
dev-libs/jansson abi_x86_32
dev-cpp/nlohmann_json abi_x86_32
media-libs/libsdl2 abi_x86_32
media-libs/sdl2-mixer abi_x86_32
media-libs/speex abi_x86_32
@@ -83,7 +83,7 @@ Then you need to `emerge` required libraries and in case portage gives shows som
Install dependencies:
```
sudo zypper in SDL2-devel fontconfig libzip5 libzip-devel libpng16-devel libicu-devel speexdsp-devel curl libcurl-devel libjansson-devel openssl openssl-devel glibc zlib cmake gcc gcc-c++ fontconfig-devel
sudo zypper in SDL2-devel fontconfig libzip5 libzip-devel libpng16-devel libicu-devel speexdsp-devel curl libcurl-devel nlohmann_json openssl openssl-devel glibc zlib cmake gcc gcc-c++ fontconfig-devel
```
#### Notes for Leap
@@ -92,7 +92,7 @@ Some old Leap version uses old version of gcc by default, OpenRCT2 needs gcc7 or
### Alpine Linux
Install dependancies:
```
apk add git gcc g++ jansson-dev libzip-dev curl-dev libressl-dev sdl2-dev fontconfig-dev fts-dev
apk add git gcc g++ libzip-dev curl-dev libressl-dev nlohmann-json sdl2-dev fontconfig-dev fts-dev
```
(Dependency fts may not be required in the future, see [#5520](https://github.com/OpenRCT2/OpenRCT2/issues/5520))
(You may wish to install Zenity or KDialog, see [#5521](https://github.com/OpenRCT2/OpenRCT2/issues/5521))
@@ -100,7 +100,7 @@ apk add git gcc g++ jansson-dev libzip-dev curl-dev libressl-dev sdl2-dev fontco
### Solus
Install these dependencies then build as normal:
```
sudo eopkg install sdl2-devel curl-devel libspeex-devel fontconfig-devel libpng-devel openssl-devel libzip-devel libicu-devel jansson-devel mesalib-devel
sudo eopkg install sdl2-devel curl-devel libspeex-devel fontconfig-devel libpng-devel openssl-devel libzip-devel libicu-devel mesalib-devel nlohmann-json
```