raspberrypi / picotool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

NickAlvar91 opened this issue · comments

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)

  • folder structure has changed
    version libusb1.0.24
    image
    current version (libusb1.0.26)
    image

  • libusb.h file is now in each sub directory
    image

  • VS2019 removed and libusb-1.0.lib under VS2015-win32
    image

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