Author Topic: LIBUSB  (Read 3252 times)


  • Newbie
  • Posts: 3
« on: July 06, 2017, 05:11:27 am »
Hello, colleagues.
I am using Lazarus 1.6 on ubuntu mate 16.04 LTS.

The problem is as follows:
I am communicating through the USB port with libusb 1.0.9 with a PIC18F4550 microcontroller. Ok the communication works perfectly.

But I saw that there is a new version of libusb, which according to the site "" the new version is libusb 1.0.21
I installed it according to the requested procedure.

Only this new version I can not compile in Lazarus displays error message.

Has a colleague already encountered this situation and how to proceed?

I'm waiting for the collaboration and thank you very much.

Forgive English, because I used google translator.


  • Hero Member
  • *****
  • Posts: 10524
« Reply #1 on: July 06, 2017, 08:05:23 am »
What is the error?
- Is it a compile time error? If so, which one or which ones?
- Is it an error while linking (linker error)?
- Is it a runtime error? If so which one?


  • Newbie
  • Posts: 3
« Reply #2 on: July 07, 2017, 03:42:39 am »
I forgot to send the problem screen prints. Now I'm sending.
The problem both happens only by compiling or executing.

I read in the forum that to have access to USB port should use the following procedure
KERNEL == "hiddev [0-9]", SUBSYSTEM == "usb",
SYSFS {idProduct} == "2525", SYSFS {idVendor} == "04d8",
MODE == "0666"

If the MODE is "0666" it usually hangs the communication, I changed it to MODE = "0777", it rarely hangs now, I'm using libusb1.0.9

I followed all the procedures and requests for the installation of libusb1.0.21

Only that I installed on top of libusb1.0.9 I do not know if this could be what is causing the error messages. If a colleague confirms that it was successful, I will format the partition that is ubuntu Linux 16.04 LTS 64bit and perform a clean installation.


  • Hero Member
  • *****
  • Posts: 1347
« Reply #3 on: July 07, 2017, 07:26:31 am »
Mmmmm, that does not look like pascal to me ... ;-)

Below, you can find a USB-HID library that was especially made for Microchip USB MCU's.
You could give it a try.
Works cross-platform.


TinyPortal © 2005-2018