mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +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 {
|
||||
SOURCES += src/ophid_usbmon_linux.cpp
|
||||
LIBS += -lusb -ludev
|
||||
LIBS += -ludev -lrt -lpthread
|
||||
|
||||
# hidapi library
|
||||
## rawhid
|
||||
# SOURCES += hidapi/linux/hid.c
|
||||
## libusb
|
||||
SOURCES += hidapi/libusb/hid.c
|
||||
LIBS += `pkg-config libusb-1.0 --libs` -lrt -lpthread
|
||||
INCLUDEPATH += /usr/include/libusb-1.0
|
||||
# INCLUDEPATH += `pkg-config libusb-1.0 --cflags`
|
||||
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += libusb-1.0
|
||||
|
||||
!exists(/usr/include/libusb-1.0) {
|
||||
error(Install libusb-1.0-0-dev using your package manager.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user