README: fix #include path to <hidapi/hidapi.h> #323

Closed
Be-ing wants to merge 1 commit from fix_include_path into master
Be-ing commented 2021-08-17 07:50:11 -05:00 (Migrated from github.com)

The build system has always installed the hidapi.h header to
<hidapi/hidapi.h> relative to the installation prefix.

The build system has always installed the hidapi.h header to <hidapi/hidapi.h> relative to the installation prefix.
Be-ing commented 2021-08-17 08:49:38 -05:00 (Migrated from github.com)

Wait, the pkgconfig file is doing some weird stuff:

 ❯ cat /usr/lib64/pkgconfig/hidapi-libusb.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Name: hidapi-libusb
Description: C Library for USB HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the libusb implementation.
Version: 0.10.1
Libs: -L${libdir} -lhidapi-libusb
Cflags: -I${includedir}/hidapi
includedir=/usr/include

That's fine.

Cflags: -I${includedir}/hidapi

This is unexpected.

Wait, the pkgconfig file is doing some weird stuff: ``` ❯ cat /usr/lib64/pkgconfig/hidapi-libusb.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib64 includedir=/usr/include Name: hidapi-libusb Description: C Library for USB HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the libusb implementation. Version: 0.10.1 Libs: -L${libdir} -lhidapi-libusb Cflags: -I${includedir}/hidapi ``` ``` includedir=/usr/include ``` That's fine. ``` Cflags: -I${includedir}/hidapi ``` This is unexpected.
Youw commented 2021-08-17 09:05:12 -05:00 (Migrated from github.com)

Cflags: -I${includedir}/hidapi

This is unexpected.

That is expected.

>> Cflags: -I${includedir}/hidapi > >This is unexpected. That _is_ expected.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi!323
No description provided.