Ticket #79 (closed development: worksforme)

Opened 21 months ago

Last modified 16 months ago

warnings when using libusb_win32

Reported by: staas Owned by: staas
Priority: low Milestone: v4.07
Component: Toolbox Function Keywords:
Cc:

Description

When i load the libusb_win32 i get a lot of warnings, but all works just fine. Will take a look at this later to either resolve this issue or simply supress the warnings.

Warning: The data type 'usb_devicePtr' used by structure usb_device does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71
Warning: The data type 'usb_devicePtrPtr' used by structure usb_device does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71
Warning: The data type 'usb_busPtr' used by structure usb_device does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71
Warning: The data type 'usb_devicePtrPtr' used by structure usb_device does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71
Warning: The data type 'usb_busPtr' used by structure usb_bus does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71
Warning: The data type 'usb_busPtrPtr' used by structure usb_bus does not exist.  The structure may not be usable. 
> In loadlibrary at 421
  In COM_OpenNXTEx>USB_OpenHandle_Libusb at 865
  In COM_OpenNXTEx>USB_OpenHandle at 519
  In COM_OpenNXTEx at 299
  In COM_OpenNXT at 71

Attachments

Change History

Changed 20 months ago by staas

  • status changed from new to closed
  • resolution set to worksforme

Currently i supress the warnings using:

warning('off','MATLAB:loadlibrary:TypeNotFoundForStructure') %supress warnings while loading the library
            loadlibrary('libusb0', @libusb0_64_proto,'alias','libusb') 
            warning('on','MATLAB:loadlibrary:TypeNotFoundForStructure')

maybe we get a better solution in the future

Changed 20 months ago by staas

  • status changed from closed to reopened
  • resolution worksforme deleted

Changed 16 months ago by behrens

  • milestone changed from vNext to v4.07

Changed 16 months ago by staas

  • status changed from reopened to closed
  • resolution set to worksforme

*as for now we supress this warnings

(see Line 925-927 in COM_OpenNXTEx)

warning('off','MATLAB:loadlibrary:TypeNotFoundForStructure') %supress warnings while loading the library
            loadlibrary('libusb0', @libusb0_64_proto,'alias','libusb') 
            warning('on','MATLAB:loadlibrary:TypeNotFoundForStructure')

Add/Change #79 (warnings when using libusb_win32)

Author



Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.