Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The libusb-1.0.27 package error while enter make command.
Forum Updated to NodeBB v4.3 + New Features

The libusb-1.0.27 package error while enter make command.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 221 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chakravarthi.N
    wrote on last edited by
    #1
    I tried using this package, libusb-1.0.27, but when I typed the make command, I received this error. 
    
    
    $ make
    

    make all-recursive
    make[1]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    Making all in libusb
    make[2]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    CC core.lo
    CC descriptor.lo
    CC hotplug.lo
    CC io.lo
    CC strerror.lo
    CC sync.lo
    CC os/events_windows.lo
    CC os/threads_windows.lo
    RC libusb-1.0.lo
    CC os/windows_common.lo
    CC os/windows_usbdk.lo
    CC os/windows_winusb.lo
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3563:21: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]

    3563 |         id->bLength = LIBUSB_DT_INTERFACE_SIZE;
    

    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41

    3531 |         char tmp[HID_MAX_CONFIG_DESC_SIZE];
    
      |              ^~~
    

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3564:29: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3564 | id->bDescriptorType = LIBUSB_DT_INTERFACE;
    | ^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^~~
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3565:30: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3565 | id->bInterfaceNumber = 0;
    | ~~~~~~~~~~~~~~~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3566:31: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3566 | id->bAlternateSetting = 0;
    | ~~~~~~~~~~~~~~~~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3567:27: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3567 | id->bNumEndpoints = num_endpoints;
    | ~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3568:29: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3568 | id->bInterfaceClass = 3;
    | ~~~~~~~~~~~~~~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3569:32: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3569 | id->bInterfaceSubClass = 0;
    | ~~~~~~~~~~~~~~~~~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3570:32: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3570 | id->bInterfaceProtocol = 0;
    | ~~~~~~~~~~~~~~~~~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3571:24: warning: array subscript 'struct libusb_interface_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3571 | id->iInterface = 0;
    | ~~~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 9 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3577:29: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3577 | ed->bLength = LIBUSB_DT_ENDPOINT_SIZE;
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3578:37: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3578 | ed->bDescriptorType = LIBUSB_DT_ENDPOINT;
    | ^~
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3579:38: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3579 | ed->bEndpointAddress = HID_IN_EP;
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3580:34: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3580 | ed->bmAttributes = 3;
    | ~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3581:36: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3581 | ed->wMaxPacketSize = hid_priv->input_report_size - 1;
    | ~^

    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3582:31: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'char[41]' [-Warray-bounds=]
    3582 | ed->bInterval = 10;
    | ~~^~
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset 27 into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3587:29: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3587 | ed->bLength = LIBUSB_DT_ENDPOINT_SIZE;
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3588:37: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3588 | ed->bDescriptorType = LIBUSB_DT_ENDPOINT;
    | ^~
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3589:38: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3589 | ed->bEndpointAddress = HID_OUT_EP;
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3590:34: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3590 | ed->bmAttributes = 3;
    | ~^
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3591:36: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3591 | ed->wMaxPacketSize = hid_priv->output_report_size - 1;
    | ~^
    ~
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    In function '_hid_get_config_descriptor',
    inlined from '_hid_get_descriptor.isra' at os/windows_winusb.c:3750:11:
    os/windows_winusb.c:3592:31: warning: array subscript 'struct libusb_endpoint_descriptor[0]' is partly outside array bounds of 'struct libusb_endpoint_descriptor[1]' [-Warray-bounds=]
    3592 | ed->bInterval = 10;
    | ~~~~~~~~~~^~
    os/windows_winusb.c: In function '_hid_get_descriptor.isra':
    os/windows_winusb.c:3531:14: note: at offset [27, 41] into object 'tmp' of size 41
    3531 | char tmp[HID_MAX_CONFIG_DESC_SIZE];
    | ^

    os/windows_winusb.c:3531:14: note: at offset [34, 41] into object 'tmp' of size 41
    CCLD libusb-1.0.la
    DLLTOOL .libs/libusb-1.0.dll.a
    make[2]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    make[2]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    make[2]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    make[1]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'

    AzureAD+ChakaravarthiNagalap@AiraaCorporates UCRT64 /c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27
    $ make install
    Making install in libusb
    make[1]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    make[2]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    /usr/bin/mkdir -p '/ucrt64/lib'
    /bin/sh ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/ucrt64/lib'
    libtool: install: /usr/bin/install -c .libs/libusb-1.0.dll.a /ucrt64/lib/libusb-1.0.dll.a
    libtool: install: base_file=basename libusb-1.0.la
    libtool: install: dlpath=/bin/sh 2>&1 -c '. .libs/'libusb-1.0.la'i; echo libusb-1.0.dll'
    libtool: install: dldir=/ucrt64/lib/dirname ../bin/libusb-1.0.dll
    libtool: install: test -d /ucrt64/lib/../bin || mkdir -p /ucrt64/lib/../bin
    libtool: install: /usr/bin/install -c .libs/libusb-1.0.dll /ucrt64/lib/../bin/libusb-1.0.dll
    libtool: install: chmod a+x /ucrt64/lib/../bin/libusb-1.0.dll
    libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /ucrt64/lib/../bin/libusb-1.0.dll' || exit 0; fi
    libtool: install: /usr/bin/install -c .libs/libusb-1.0.lai /ucrt64/lib/libusb-1.0.la
    libtool: install: /usr/bin/install -c .libs/libusb-1.0.a /ucrt64/lib/libusb-1.0.a
    libtool: install: chmod 644 /ucrt64/lib/libusb-1.0.a
    libtool: install: ranlib /ucrt64/lib/libusb-1.0.a
    /usr/bin/mkdir -p '/ucrt64/include/libusb-1.0'
    /usr/bin/install -c -m 644 libusb.h '/ucrt64/include/libusb-1.0'
    make[2]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    make[1]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27/libusb'
    make[1]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    make[2]: Entering directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    make[2]: Nothing to be done for 'install-exec-am'.
    /usr/bin/mkdir -p '/ucrt64/lib/pkgconfig'
    /usr/bin/install -c -m 644 libusb-1.0.pc '/ucrt64/lib/pkgconfig'
    make[2]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'
    make[1]: Leaving directory '/c/Users/ChakaravarthiNagalap/Desktop/libusb-windows/libusb-1.0.27'

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's a question you should ask the libusb folks.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved