Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add helpful note for macos users failing linking #2759

Merged
merged 1 commit into from
Feb 18, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ The fastest option is to run the brew command with the `arch -arm64` prefix i.e.

Visual Studio Code still runs under Rosetta 2 and if you're developing for proxmark3 on an Apple Silicon Mac you might want to consider running the Insiders build which has support for running natively on Apple Silicon.

If you see an error when linking:
```
ld: warning: ignoring file /usr/local/Cellar/.../libpython3.9.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_PyArg_UnpackTuple", referenced from:
_SwigPyObject_own in pm3_pywrap.o
...
```
your build environment has tried to link python across architectures. You can find or install python via homebrew (arm64) and inform the linker to use this
```
brew install python@<VERSION>
export LDFLAGS="-L/opt/homebrew/Cellar/python@<VERSION>/<VERSION>.<MINORVERSION>/Frameworks/Python.framework/Versions/<VERSION>/lib/" && make
```

## Install Proxmark3 tools
^[Top](#top)

Expand Down