Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

docs: Add m1 specific build instructions (#264) #272

Merged
merged 1 commit into from
Nov 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,31 @@ pip3 install .

Use `--user` parameter if necessary.

### M1 specific build instructions

Macs with Apple Silicon chips need to follow these steps to build. Watch [this video](https://youtu.be/JsqV5QJQ0Y4) for aid.
srevinsaju marked this conversation as resolved.
Show resolved Hide resolved

- Install `scrcpy` from [homebrew](https://brew.sh) and `poetry` from [python-poetry](https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions).

- Delete `python@3.9` dependency that comes along with scrcpy because `qtpy` and `pyside2` conflict with it. As long as you have any other python version in your `PATH`, it won't affect other dependencies.
```
brew uninstall --ignore-dependencies python@3.9
```

- Clone the repository.

- `cd` into the directory with a Rosetta2 emulated terminal.

- Download `guiscrcpy` dependencies.
```
poetry install -E PySide2
```

- Launch `guiscrcpy`:
```
poetry run guiscrcpy
```

## v3.5+

A typical build (v**3.5**+) has a sequence of commands as:
Expand Down