Closed arg08 closed 1 year ago
See also raspberrypi/pico-sdk#396.
Thanks, I've incorporated this suggestion into #27 :+1:
Just for note: I could build and install on Manjaro just forcing include to libusb. More: https://faelpinho.medium.com/how-to-install-picotool-on-manjaro-linux-6a5a3cfaf743
Picotool currently doesn't quite build on FreeBSD because libusb (which is part of the base system rather than an add-on package) is just 'libusb' rather than 'libusb-1.0' even though it's compatible with the Linux -1.0 version.
So very simple patch makes it all work:
diff --git a/cmake/FindLIBUSB.cmake b/cmake/FindLIBUSB.cmake index c8cc62c..560e023 100644 --- a/cmake/FindLIBUSB.cmake +++ b/cmake/FindLIBUSB.cmake @@ -20,7 +20,7 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES) ENDIF(NOT WIN32) FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
ie. just add "usb" after "usb-1.0" on the FIND_LIBRARY line.