mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
OP-1722 libusb include incorrect: make ophid.pro use pkg-config
correctly
This commit is contained in:
parent
fb59e5aef4
commit
4cc4ef1537
@ -40,16 +40,16 @@ macx {
|
|||||||
|
|
||||||
linux {
|
linux {
|
||||||
SOURCES += src/ophid_usbmon_linux.cpp
|
SOURCES += src/ophid_usbmon_linux.cpp
|
||||||
LIBS += -lusb -ludev
|
LIBS += -ludev -lrt -lpthread
|
||||||
|
|
||||||
# hidapi library
|
# hidapi library
|
||||||
## rawhid
|
## rawhid
|
||||||
# SOURCES += hidapi/linux/hid.c
|
# SOURCES += hidapi/linux/hid.c
|
||||||
## libusb
|
## libusb
|
||||||
SOURCES += hidapi/libusb/hid.c
|
SOURCES += hidapi/libusb/hid.c
|
||||||
LIBS += `pkg-config libusb-1.0 --libs` -lrt -lpthread
|
|
||||||
INCLUDEPATH += /usr/include/libusb-1.0
|
CONFIG += link_pkgconfig
|
||||||
# INCLUDEPATH += `pkg-config libusb-1.0 --cflags`
|
PKGCONFIG += libusb-1.0
|
||||||
|
|
||||||
!exists(/usr/include/libusb-1.0) {
|
!exists(/usr/include/libusb-1.0) {
|
||||||
error(Install libusb-1.0-0-dev using your package manager.)
|
error(Install libusb-1.0-0-dev using your package manager.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user