Open michelcrypt4d4mus opened 1 year ago
Perhaps worth noting that I definitely have libusb.h
... in fact I have a couple:
/opt/homebrew/include
has one:$ find /opt/homebrew/ -iname "*libusb*"
/opt/homebrew//include/libusb-1.0
/opt/homebrew//var/homebrew/linked/libusb
/opt/homebrew//Library/Taps/homebrew/homebrew-core/Formula/libusb.rb
/opt/homebrew//Library/Taps/homebrew/homebrew-core/Formula/libusbmuxd.rb
/opt/homebrew//Library/Taps/homebrew/homebrew-core/Formula/libusb-compat.rb
/opt/homebrew//lib/pkgconfig/libusb-1.0.pc
/opt/homebrew//lib/libusb-1.0.dylib
/opt/homebrew//lib/libusb-1.0.0.dylib
/opt/homebrew//lib/libusb-1.0.a
/opt/homebrew//opt/libusb
/opt/homebrew//Cellar/libusb
/opt/homebrew//Cellar/libusb/1.0.26/.brew/libusb.rb
/opt/homebrew//Cellar/libusb/1.0.26/include/libusb-1.0
/opt/homebrew//Cellar/libusb/1.0.26/include/libusb-1.0/libusb.h
/opt/homebrew//Cellar/libusb/1.0.26/lib/pkgconfig/libusb-1.0.pc
/opt/homebrew//Cellar/libusb/1.0.26/lib/libusb-1.0.dylib
/opt/homebrew//Cellar/libusb/1.0.26/lib/libusb-1.0.0.dylib
/opt/homebrew//Cellar/libusb/1.0.26/lib/libusb-1.0.a
/opt/homebrew//Cellar/libusb/1.0.26/share/libusb
/opt/homebrew//Cellar/libusb/1.0.26/share/libusb/examples/testlibusb.c
/opt/homebrew//share/libusb
/usr/local/MacGPG2/include
also has one:$ find /usr/local -iname "*libusb*"
/usr/local/MacGPG2/include/libusb-1.0
/usr/local/MacGPG2/include/libusb-1.0/libusb.h
/usr/local/MacGPG2/lib/libusb-1.0.dylib
/usr/local/MacGPG2/lib/libusb-1.0.0.dylib
MacGPG2
copy of libusb.h
is in the way?cmake
? CPPFLAGS
or something? but alas i haven't actually written C++ in like, a very long time, and i've never had to deal w/cmake
.I ran into the same problem building the ubertooth-* tools regarding libusb-1.0.0. I edited /host/libubertooth/src/ubertooth_control.h file and provided an explicit path to my libusb. This seemed to work and the make install finished. Unfortunately when I tried to execute ubertooth-btle it errored with this
dyld[36380]: Library not loaded: libubertooth.1.dylib Referenced from: <C557E36A-C2A9-3B94-9918-28ED42DA88AB> /usr/local/bin/ubertooth-btle Reason: tried: 'libubertooth.1.dylib' (no such file)....
Steps to reproduce
Follow the build from git instructions on macOS using homebrew:
brew install
as per this issue's updated recommendation seems to work fine, though I do get a warning aboutlibpcap
linking (see below)libbtbb
from source or the other way seems to work fine though there are some ominous warnings about requesting the python version''
... and also the commandsudo ldconfig
at the last step givescommand not found
cmake
forubertooth
findslibbtbb
ok (or seems to) but throws warning aboutCould NOT find LIBBLUETOOTH (missing: LIBBLUETOOTH_LIBRARIES LIBBLUETOOTH_INCLUDE_DIR)
. Unclear if it actually succeeded.make
fails forubertooth
on missinglibusb
:LDFLAGS
/CPPFLAGS
as suggested by homebrew for the pcap libraryExpected behaviour
It should build
Actual behaviour
See
4.
above.Version information
Operating system: macOS 12.6.1
Python: 3.10.8
Ubertooth tools version (ubertooth-rx -V):
2020-12-R1
(i think? just checked out of git today)libbtbb version:
/usr/local/lib/libbtbb.1.0.dylib
so i guess 1.0?Ubertooth firmware version (ubertooth-util -v): Didn't get that far yet.
Output
brew install
as per the other issueBuild
libtbb
Running
cmake
forubertooth
warnings and maybe failure?:(Without
cmake
,make
also fails)