From 36a685d560f4e2b3eb95293fd37e1d8ecd42276c Mon Sep 17 00:00:00 2001 From: Bitkarrot <73979971+bitkarrot@users.noreply.github.com> Date: Fri, 8 Apr 2022 11:12:12 -0700 Subject: [PATCH] Notes for Apple M1 build from source (#7747) * Create notes_for_arm.md --- contrib/osx/notes_for_arm.md | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 contrib/osx/notes_for_arm.md diff --git a/contrib/osx/notes_for_arm.md b/contrib/osx/notes_for_arm.md new file mode 100644 index 000000000..43f6e29a8 --- /dev/null +++ b/contrib/osx/notes_for_arm.md @@ -0,0 +1,51 @@ +# Notes on running Electrum from source on ARM-based Macs (Apple M1 OSX) + +Development version (git clone) + +1. Check out the code from GitHub: + +``` +$ git clone https://github.com/spesmilo/electrum.git +$ cd electrum +$ git submodule update --init +``` + +Run install (this should install dependencies): +``` +python3 -m pip install --user -e . +``` + +2. cryptography and will need to be manually installed. It will mention pycryptodomex, but prefer cryptography: + +``` +$ pip install cryptography +``` + +3. Install libsecp256k1 + +``` +$ contrib/make_libsecp256k1.sh +``` + +4. `pip install pyqt5` will work on intel x86, however for M1, to bypass pyqt5 install issue, do the following: + +``` +$ brew install pyqt5 +$ echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.zshrc +$ echo 'export PATH="/opt/homebrew/opt/pyqt@5/5.15.4_1/bin:$PATH"' >> ~/.zshrc +$ source ~/.zshrc +``` + +Finally, try it in python to ensure it works: + +``` +$ python3 +>>> import PyQt5 +``` + +5. Run electrum: + +``` +$ ./run_electrum +``` +