mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-17 04:52:31 +01:00
Capitalization, https, $(sysctl -n hw.availcpu)
@@ -1,9 +1,9 @@
|
|||||||
To build natively on macOS, without using Xcode, you will need a set of libraries set up. This guide assumes you already have the following installed:
|
To build natively on macOS, without using Xcode, you will need a set of libraries set up. This guide assumes you already have the following installed:
|
||||||
|
|
||||||
- a copy of the game files, downloaded onto your machine.
|
- A copy of the game files, downloaded onto your machine.
|
||||||
- OS X Developer Tools
|
- OS X Developer Tools
|
||||||
- [Homebrew](http://brew.sh/) / MacPorts / Fink
|
- [Homebrew](https://brew.sh/) / MacPorts / Fink
|
||||||
- Optional: Xcode
|
- Xcode *(optional)*
|
||||||
|
|
||||||
## Installing libraries
|
## Installing libraries
|
||||||
|
|
||||||
@@ -17,15 +17,15 @@ brew install cmake duktape freetype icu4c libpng libzip nlohmann-json openssl pk
|
|||||||
Navigate to the directory OpenRCT2 is in (`cd`), then make a build directory and invoke `cmake`:
|
Navigate to the directory OpenRCT2 is in (`cd`), then make a build directory and invoke `cmake`:
|
||||||
```bash
|
```bash
|
||||||
cd /path/to/repo/OpenRCT2
|
cd /path/to/repo/OpenRCT2
|
||||||
mkdir build && cd ./build
|
mkdir build && cd build
|
||||||
cmake .. -DCMAKE_INSTALL_PREFIX=./install
|
cmake .. -DCMAKE_INSTALL_PREFIX=./install
|
||||||
make -j4 install # the install step builds openrct, g2 and downloads OpenRCT2 data
|
make -j$(sysctl -n hw.availcpu) install # the install step builds openrct, g2 and downloads OpenRCT2 data
|
||||||
```
|
```
|
||||||
|
|
||||||
If any libraries are missing, you will see an error message. Adjust as needed or check out the `Troubleshooting` section below.
|
If any libraries are missing, you will see an error message. Adjust as needed or check out the `Troubleshooting` section below.
|
||||||
Once all errors have been fixed we can start building:
|
Once all errors have been fixed we can start building:
|
||||||
```bash
|
```bash
|
||||||
make -j4 install
|
make -j$(sysctl -n hw.availcpu) install
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, before executing the game, link the just installed openrct2 data folder to the current directory to help `openrct2` find it. Then run the game.
|
Now, before executing the game, link the just installed openrct2 data folder to the current directory to help `openrct2` find it. Then run the game.
|
||||||
@@ -37,7 +37,7 @@ ln -s ./install/share/openrct2 data
|
|||||||
|
|
||||||
After the first install, you can build the `openrct2` binaries, no install required:
|
After the first install, you can build the `openrct2` binaries, no install required:
|
||||||
```bash
|
```bash
|
||||||
make -j4
|
make -j$(sysctl -n hw.availcpu)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
@@ -128,4 +128,4 @@ cmake ..
|
|||||||
|
|
||||||
Fire up the binary or application you just built. You should be good to go!
|
Fire up the binary or application you just built. You should be good to go!
|
||||||
|
|
||||||
That's it! If you run into problems please paste all of the information you have into a github issue and we'll take a look.
|
That's it! If you run into problems please paste all of the information you have into a GitHub issue and we'll take a look.
|
||||||
Reference in New Issue
Block a user