[MacPorts] #67189: hidapi @0.12.0_0: hidapi_darwin.h missing

MacPorts noreply at macports.org
Tue Apr 4 02:48:50 UTC 2023


#67189: hidapi @0.12.0_0: hidapi_darwin.h missing
----------------------------------+--------------------
 Reporter:  UNIVAC-Colonel-Panic  |      Owner:  (none)
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:  2.8.1
 Keywords:                        |       Port:  hidapi
----------------------------------+--------------------
 My first report -- please be kind :) as I am not very familiar with the
 MacPorts ecosystem.

 I'm compiling a program and it fails with this error:

      fatal error: 'hidapi/hidapi_darwin.h' file not found; #include
 <hidapi/hidapi_darwin.h>

 When I extract the source tarball:
 https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.12.0.tar.gz

 there are two hidapi-related headers:

      hidapi-0.12.0/mac/hidapi_darwin.h    (about 4k bytes)

      hidapi-0.12.0/hidapi/hidapi.h        (about 18k bytes)

 After I do 'sudo port install hidapi' the only hidapi-related header file
 on my Big Sur is located here:

      /opt/local/include/hidapi/hidapi.h   (about 18k bytes)

 In case it helps, Homebrew puts these headers here:

      /usr/local/include/hidapi/hidapi.h -> /usr/local/Cellar/hidapi/...
 (about 18k bytes)

      /usr/local/opt/hidapi/include/hidapi/hidapi.h ->
 /usr/local/Cellar/hidapi/...         (about 18k bytes)



      /usr/local/include/hidapi/hidapi_darwin.h ->
 /usr/local/Cellar/hidapi/...             (about 4k bytes)

      /usr/local/opt/hidapi/include/hidapi/hidapi_darwin.h ->
 /usr/local/Cellar/hidapi/...  (about 4k bytes)

-- 
Ticket URL: <https://trac.macports.org/ticket/67189>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list