Commit 7a8c4dd2 authored by Martin's avatar Martin Committed by Adam Honse
Browse files

Support hidraw USAGE/USAGE_PAGE

* Support hidapi 0.10.1 and newer
parent 6454f6c5
Pipeline #236625333 passed with stage
in 10 minutes and 22 seconds
......@@ -673,6 +673,15 @@ unix:!macx {
#-------------------------------------------------------------------------------------------#
packagesExist(hidapi-hidraw) {
LIBS += -lhidapi-hidraw
#---------------------------------------------------------------------------------------#
# hidapi-hidraw >= 0.10.1 supports USAGE/USAGE_PAGE #
# Define USE_HID_USAGE if hidapi-hidraw supports it #
#---------------------------------------------------------------------------------------#
HIDAPI_HIDRAW_VERSION = $$system(pkgconf --modversion hidapi-hidraw)
if(versionAtLeast(HIDAPI_HIDRAW_VERSION, "0.10.1")) {
DEFINES += USE_HID_USAGE
}
} else {
packagesExist(hidapi-libusb) {
LIBS += -lhidapi-libusb
......
......@@ -54,7 +54,7 @@ There have been two instances of hardware damage in OpenRGB's development and we
* Pre-built binaries in AppImage format are available under the Releases section on GitLab.
* You can build the project using Qt Creator or on the command line.
1. Install build dependencies
- Debian: sudo apt install build-essential qtcreator qt5-default libusb-1.0-0-dev libhidapi-dev pkgconf
- Debian: sudo apt install build-essential qtcreator qt5-default libusb-1.0-0-dev libhidapi-dev pkgconf pkg-config
- Fedora: sudo dnf install git make automake gcc gcc-c++ qt-creator qt5-devel hidapi-devel libusb-devel
2. git clone https://gitlab.com/CalcProgrammer1/OpenRGB
3. cd OpenRGB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment