Libusb not found
bobmarleyfaruk9 opened this issue · comments
I have tried the followings:
- brew install libusb
- sudo port install libusb
- clone libusb from the official github repo and install
- specify the ldflags such as LDFLAGS =-L/usr/local/lib and include header statically
unfortunately, none of them have resolved the issue.
Any kind of help will be appreciated...
go into loader/Makefile and change CFLAGS and LDFLAGS to:
CFLAGS = -g -I/opt/homebrew/include
LDFLAGS = -L/opt/homebrew/lib -lusb-1.0
go into loader/Makefile and change CFLAGS and LDFLAGS to:
CFLAGS = -g -I/opt/homebrew/include LDFLAGS = -L/opt/homebrew/lib -lusb-1.0
Thank you for the answer!
Modifying the makefile to this worked for me but your solution is same/more elegant
CC = clang
CFLAGS = -g
LDFLAGS = -L/usr/local/lib
ifeq ($(XNUSPY_SERIAL), 1)
CFLAGS += -DXNUSPY_SERIAL
endif
TARGET = loader
SOURCES = loader.c