superenv interfering with dependent header for libusb
#5898
Unanswered
phreed
asked this question in
Writing Formulae/Casks
Replies: 2 comments
-
|
I did the following to get past the issues: brew install --build-from-source ./rpiboot.rb --debugWhich produced the following error message: Then from the pkg-config --cflags --libs libusb-1.0Which gives: Then I run the following corrected compilation: gcc-14 -Wall -Wextra -g -o rpiboot main.c bootfiles.c decode_duid.c -isystem/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/include/libusb-1.0 -L/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/lib -lusb-1.0 -DGIT_VER="\"d4aa5041\"" -DPKG_VER="\"20240422~085300\"" -DINSTALL_PREFIX=\"/usr\" -L/home/linuxbrew/.linuxbrew/Cellar/libusb/1.0.27/lib -lusb-1.0That builds. This gives me a valid |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Alternatively, if I modify the My guess is that in this case |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
https://github.com/phreed/homebrew-custom/blob/main/Formula/rpiboot.rb
I am working on a formula for
rpiboot.https://github.com/raspberrypi/usbboot?tab=readme-ov-file#macos
It mostly builds but it appears that
superenvis stripping away the -I CFLAGS.There is a secondary issue related to gcc and -isystem vs. -I where
#include <libusb.h>is not found with -I.But, that is another issue.
Contents of
/var/home/phreed/.cache/Homebrew/Logs/rpiboot/01.make.ccBeta Was this translation helpful? Give feedback.
All reactions