QSerialDevice: Compilation error “libudev.h: No su

2019-04-23 03:46发布

问题:

I checked-out the QSerialDevice from (https://gitorious.org/qserialdevice). I have to download the UDEV (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html) but the link is broken. So, I skipped this and tried to build the library but obviously I get an error of missing libudev.h.

How can I fix this?

I am using qextserialport but am facing problems in the read, so am trying to substitute it with qserialdevice.

Thank you!

回答1:

For Ubuntu, install the package libudev-dev.

If you need other files, you can find the package that contains it with http://packages.ubuntu.com#search_contents



标签: qt4