Hi Jean! Thanks for your effort and please excuse my late reply, I was busy the last few days.
Please note that for pas-libusb there is a dedicated Git branch for the newer LibUSB 1.0. The branch is called "libusb-1.0". Marc pointed to that in his EMail from Fri, 26 Jul 2019 15:56:17 +0200. I'm sorry for the confusion! I've now updated the Readme.rst in the branch "master" to point that out. In the branch "libusb-1.0" I've lately changed a few things (see my EMail from Tue, 30 Jul 2019 22:54:07 +0200) so that all dependencies to Linux units should be gone. Actually, with the branch "libusb-1.0" you should not need any "compat" stuff any more. Could you please give that a try and see whether you are more successful with it? Regarding "lsusb": The "test1library.pas" example should be just that. Regarding the testfirmware example: This is specifically for devices with the EZUSB Chip (e.g., Cypress AN2131). It is included to demonstrate, how you could implement your own interface to your own device with other chips with SRAM firmware (e.g. Cypress FX2 or FX3). Bye Hansi Am Sonntag, den 04.08.2019, 08:54 +0200 schrieb Jean SUZINEAU: > Zadig > > I found a way to make my test with libusb-win32 work. You just need > to install a specific driver for the usb device you want to see. > This can be done using Zadig ( https://zadig.akeo.ie/ ). If you > change the driver to "libusbK" or "libusb-win32" for a certain device > with Zadig, it will appear with lsusb_libusb-win32\lsusb.exe . > But it doesn't change anything for the version with libusb-compat, > lsusb_libusb-compat-msys2_mingw64\lsusb.exe wich shows nothing. > And it doesn't change anything either to the version with libusb, > https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2019_08_03_lsusb > which continue to show all the usb devices. > > I have also tried libusbK ( > http://libusbk.sourceforge.net/UsbK3/index.html ). > You can download it at https://sourceforge.net/projects/libusbk/ > > There are delphi examples in the subdirectory > bindings\examples_delphi . > > They can be compiled easily with freepascal, you just need to compile > in delphi mode. > For "bindings\examples_delphi\enumerate.dpr" you can use this command > line ( from a cmd in the directory examples_delphi) > C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.exe -MDelphi -Scghi -O1 > -g -gl -l -vewnhibq -Filib\x86_64-win64 -Fu. -FUlib\x86_64-win64 -FE. > -oenumerate.exe enumerate.dpr > > For "bindings\examples_delphi\opendevice.dpr" it didn't found unit > UExampleHelpers. I didn't investigated further but it seems you can > find the unit at : > https://github.com/SimaWB/libusbkDelphi/blob/master/UExampleHelpers.pas > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal