Commit fdba24ab1df96cc6a3601bc15a016700963e8c65

Authored by connorfuhrman
1 parent a6ff33a6

Updated README for PKG_CONFIG_PATH env variable

Showing 1 changed file with 7 additions and 2 deletions
Readme.md
@@ -41,8 +41,9 @@ From a macOS machine, you can also run usbboot, just follow the same steps: @@ -41,8 +41,9 @@ From a macOS machine, you can also run usbboot, just follow the same steps:
41 1. Clone the `usbboot` repository 41 1. Clone the `usbboot` repository
42 2. Install `libusb` (`brew install libusb`) 42 2. Install `libusb` (`brew install libusb`)
43 3. Install `pkg-config` (`brew install pkg-config`) 43 3. Install `pkg-config` (`brew install pkg-config`)
44 -4. Build using make  
45 -5. Run the binary 44 +4. (Optional) Export the `PKG_CONFIG_PATH` so that it includes the directory enclosing `libusb-1.0.pc`
  45 +5. Build using make
  46 +6. Run the binary
46 47
47 ``` 48 ```
48 git clone --depth=1 https://github.com/raspberrypi/usbboot 49 git clone --depth=1 https://github.com/raspberrypi/usbboot
@@ -53,6 +54,10 @@ make @@ -53,6 +54,10 @@ make
53 sudo ./rpiboot 54 sudo ./rpiboot
54 ``` 55 ```
55 56
  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 +This should be set via `export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"`.
  59 +
  60 +
56 ## Running 61 ## Running
57 62
58 ### Compute Module 3 63 ### Compute Module 3