Commit df27ddd93777d31ac4adb6f1b6689db2d4093792
Committed by
GitHub
1 parent
a8782f96
Update instructions for ARM-based Macs
See https://github.com/raspberrypi/usbboot/issues/176.
Showing
1 changed file
with
11 additions
and
0 deletions
Readme.md
| ... | ... | @@ -57,6 +57,17 @@ sudo ./rpiboot |
| 57 | 57 | If the build is unable to find the header file `libusb.h` then most likely the `PKG_CONFIG_PATH` is not set properly. |
| 58 | 58 | This should be set via `export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"`. |
| 59 | 59 | |
| 60 | +If the build fails on an ARM-based Mac with a linker error such as `ld: warning: ignoring file /usr/local/Cellar/libusb/1.0.26/lib/libusb-1.0.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64` then you may need to build and install `libusb-1.0` yourself: | |
| 61 | +``` | |
| 62 | +$ wget https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2 | |
| 63 | +$ tar -xf libusb-1.0.26.tar.bz2 | |
| 64 | +$ cd libusb-1.0.26 | |
| 65 | +$ ./configure | |
| 66 | +$ make | |
| 67 | +$ make check | |
| 68 | +$ sudo make install | |
| 69 | +``` | |
| 70 | +Running `make` again should now succeed. | |
| 60 | 71 | |
| 61 | 72 | ## Running |
| 62 | 73 | ... | ... |