Skip to content

Commit

Permalink
Update instructions for ARM-based Macs
Browse files Browse the repository at this point in the history
See #176.
  • Loading branch information
pelwell authored Dec 16, 2022
1 parent a8782f9 commit df27ddd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ sudo ./rpiboot
If the build is unable to find the header file `libusb.h` then most likely the `PKG_CONFIG_PATH` is not set properly.
This should be set via `export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"`.

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:
```
$ wget https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2
$ tar -xf libusb-1.0.26.tar.bz2
$ cd libusb-1.0.26
$ ./configure
$ make
$ make check
$ sudo make install
```
Running `make` again should now succeed.

## Running

Expand Down

0 comments on commit df27ddd

Please sign in to comment.