Skip to content

Commit

Permalink
Merge pull request #45 from facebookresearch/m1_fix_v2
Browse files Browse the repository at this point in the history
add separate install instructions for m1 chips
  • Loading branch information
eugenevinitsky authored Sep 10, 2022
2 parents 26f3367 + f59cf7b commit c189b26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Run `cmake --version` to see whether CMake is already installed in your environm
- `sudo apt-get -y install cmake` (Linux)
- `brew install cmake` (MacOS)

### All machines besides OS with Mac M1 chip follow instructions below
Nocturne uses [SFML](https://github.com/SFML/SFML) for drawing and visualization, as well as on [pybind11](https://pybind11.readthedocs.io/en/latest/) for compiling the C++ code as a Python library.

To install SFML:
Expand All @@ -52,6 +53,14 @@ To install SFML:

pybind11 is included as a submodule and will be installed in the next step.

### Machines with a Mac M1 chip
Unfortunately if you have a Mac M1 chip you need to ensure that your SFML version is x86_64 instead of arm64; by default brew will install the arm64 variant. The following instructions will help you do this.

1. Make sure you have rosetta2 installed. You can do this by running `softwareupdate --install-rosetta` from the command line.
2. Build an x86_64 version of brew (which you alias to brow) using the instructions here: [stackoverflow](https://stackoverflow.com/questions/64951024/how-can-i-run-two-isolated-installations-of-homebrew).
3. Now, run `brow install sfml`
then everything will compile fine.

## Installing Nocturne

Start by cloning the repo:
Expand Down

0 comments on commit c189b26

Please sign in to comment.