-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mac instalation documentation
- Loading branch information
Showing
1 changed file
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] 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 | ||
|
||
|