Skip to content

Commit

Permalink
Update mac instalation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Mar 21, 2024
1 parent 0b69803 commit da8db60
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions docs/installation/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,17 @@ To use Crazyradio you will have to [install the drivers](https://www.bitcraze.io

### Mac

#### Intel X86
The Client requires MacOS 11 (Big Sur) or more recent. It works both on x86 and Apple-silicon macs.

Python3 and required libs can be installed with brew:
```
brew install python3 libusb
brew link python3 # This makes sure the latest python3 is used
# if "which python3" does not return "/usr/local/bin/python3", relaunch your terminal
pip3 install --upgrade pip.
```
The client works both with the Apple-provided python3 (as long as it is python >= 3.8), and with python installed with brew.

#### Apple M1
The client can be installed on command line with pip:

On Apple M1 Macs, care should be taken to use the X86 version of Brew since not all required dependencies compiles for the native `arm64` architecture of the M1 macs. This can be done by using the `arch` commands when installing brew:
``` bash
# Installing brew for x86_64, it will be installed in /usr/local by default
arch --x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Now we have to use brew and then python from /usr/local ...
arch --x86_64 brew install python@3.9 libusb
# The arch command is not required anymore since everything brew installed are x86 executables
```
python3 -m pip install cfclient
```

From there, you can either add `/usr/local/bin` up in your path variable or run `/usr/local/bin/pip3` and `/usr/local/bin/python3` instead of `pip3` and `python3`.
The client can then be lauched from a console, wither with ```cfclient``` or ```python3 -m cfclient.gui```.

## Installing from latest release

Expand Down

0 comments on commit da8db60

Please sign in to comment.