raspberrypi / picotool

BSD 3-Clause "New" or "Revised" License
579 stars 103 forks source link

[BUG] FindLIBUSB.cmake points to an old include and library paths #52

Closed NickAlvar91 closed 1 month ago

NickAlvar91 commented 2 years ago

The findLIBUSB.cmake file points to folders that existed in "libusb-1.0.24"

FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h
       ***HINTS $ENV{LIBUSB_ROOT}/include/libusb-1.0***
       PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES libusb-1.0 usb-1.0 usb
       ***HINTS $ENV{LIBUSB_ROOT}/VS2019/MS32/static***

libusb1.0.24 path to "libusb-1.0.lib" ( $ENV{LIBUSB_ROOT}/VS2019/MS32/static) image

libusb1.0.24 path to "libusb.h" ($ENV{LIBUSB_ROOT}/include/libusb-1.0) image

In the version 1.0.26 (as of June 6, 2022)

will-v-pi commented 1 month ago

This has been fixed with picotool 2.0.0 if you download the latest libusb 1.0.27 release