mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
cmsisDAP: try libhidapi-hidraw, or libhidapi-libusb for backward compatibility
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
||||
cmake \
|
||||
libftdi1-2 \
|
||||
libftdi1-dev \
|
||||
libhidapi-libusb0 \
|
||||
libhidapi-hidraw0 \
|
||||
libhidapi-dev \
|
||||
libudev-dev \
|
||||
pkg-config \
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
sudo apt update -qq
|
||||
sudo apt install -y \
|
||||
libftdi1-2 \
|
||||
libhidapi-libusb0 \
|
||||
libhidapi-hidraw0 \
|
||||
udev
|
||||
|
||||
- name: '📥 Download artifact: package'
|
||||
|
||||
+5
-1
@@ -36,7 +36,11 @@ if(USE_PKGCONFIG)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBFTDI REQUIRED libftdi1)
|
||||
pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
|
||||
pkg_check_modules(HIDAPI hidapi-libusb)
|
||||
pkg_check_modules(HIDAPI hidapi-hidraw)
|
||||
# if hidraw not found try with libusb
|
||||
if(NOT HIDAPI_FOUND)
|
||||
pkg_check_modules(HIDAPI hidapi-libusb)
|
||||
endif()
|
||||
|
||||
if(ENABLE_UDEV)
|
||||
pkg_check_modules(LIBUDEV libudev)
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ sudo dnf install openFPGALoader
|
||||
This application uses **libftdi1**, so this library must be installed (and,
|
||||
depending of the distribution, headers too)
|
||||
```bash
|
||||
apt-get install libftdi1-2 libftdi1-dev libhidapi-libusb0 libhidapi-dev libudev-dev cmake pkg-config make g++
|
||||
apt-get install libftdi1-2 libftdi1-dev libhidapi-hidraw0 libhidapi-dev libudev-dev cmake pkg-config make g++
|
||||
```
|
||||
**libudev-dev** is optional, may be replaced by **eudev-dev** or just not installed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user