For some reason, while CMake is able to find libusb-1.0
(from pkgconfig
) and correctly identify its linked location, the linker is not able to find the library (i.e., I receive the error ld: library not found for -lusb-1.0
.)
Some details:
- I am using an M1 Mac
libusb
was installed using Homebrew andbrew link
reports it has been linked- This comes from trying to compile osmocom's
rtl-sdr
library found here (essentially cloning, making a newbuild/
directory in the cloned repo folder, and runningcmake ../
from this new directory) - similar things have failed in previous compilation attempts with other packages
It is very possible I'm being silly and there is an additional step that needs to be taken when attempting to link against these libraries on Big Sur? I'm honestly not 100% sure here.
Thank you in advance !