Changes between Initial Version and Version 2 of Ticket #67189


Ignore:
Timestamp:
Apr 6, 2023, 6:01:50 AM (13 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

The hidapi Portfile contains no special directives affecting what gets installed, so it's entirely up to the hidapi build system what gets installed, and I guess they don't install hidapi_darwin.h.

To the extent that I understand its syntax, the Homebrew formula doesn't seem to mention anything about hidapi_darwin.h either. However, Homebrew is installing 0.13.1 while we are installing 0.12.0. Maybe we should start by updating the port to the latest version. That may already fix it. Maybe there was a bug in 0.12.0 that caused that file not to get installed. I do see one place (in dist/hidapi.podspec) where they forgot to mention that header in 0.12.0 and fixed it afterward but I don't know if that file is involved in the installation process.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #67189

    • Property Status changed from new to assigned
    • Property Cc raimue@… removed
    • Property Owner set to raimue
  • Ticket #67189 – Description

    initial v2  
    33I'm compiling a program and it fails with this error:
    44
    5      fatal error: 'hidapi/hidapi_darwin.h' file not found; #include <hidapi/hidapi_darwin.h>
     5{{{
     6fatal error: 'hidapi/hidapi_darwin.h' file not found; #include <hidapi/hidapi_darwin.h>
     7}}}
    68
    79When I extract the source tarball: https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.12.0.tar.gz
     
    911there are two hidapi-related headers:
    1012
    11      hidapi-0.12.0/mac/hidapi_darwin.h    (about 4k bytes)
     13* hidapi-0.12.0/mac/hidapi_darwin.h    (about 4k bytes)
     14* hidapi-0.12.0/hidapi/hidapi.h        (about 18k bytes)
    1215
    13      hidapi-0.12.0/hidapi/hidapi.h        (about 18k bytes)
     16After I do `sudo port install hidapi` the only hidapi-related header file on my Big Sur is located here:
    1417
    15 After I do 'sudo port install hidapi' the only hidapi-related header file on my Big Sur is located here:
    16 
    17      /opt/local/include/hidapi/hidapi.h   (about 18k bytes)
     18* /opt/local/include/hidapi/hidapi.h   (about 18k bytes)
    1819
    1920In case it helps, Homebrew puts these headers here:
    2021 
    21      /usr/local/include/hidapi/hidapi.h -> /usr/local/Cellar/hidapi/...                    (about 18k bytes)
     22* /usr/local/include/hidapi/hidapi.h -> /usr/local/Cellar/hidapi/...                    (about 18k bytes)
     23* /usr/local/opt/hidapi/include/hidapi/hidapi.h -> /usr/local/Cellar/hidapi/...         (about 18k bytes)
     24* /usr/local/include/hidapi/hidapi_darwin.h -> /usr/local/Cellar/hidapi/...             (about 4k bytes)
     25* /usr/local/opt/hidapi/include/hidapi/hidapi_darwin.h -> /usr/local/Cellar/hidapi/...  (about 4k bytes)
    2226
    23      /usr/local/opt/hidapi/include/hidapi/hidapi.h -> /usr/local/Cellar/hidapi/...         (about 18k bytes)
    24 
    25 
    26 
    27      /usr/local/include/hidapi/hidapi_darwin.h -> /usr/local/Cellar/hidapi/...             (about 4k bytes)
    28 
    29      /usr/local/opt/hidapi/include/hidapi/hidapi_darwin.h -> /usr/local/Cellar/hidapi/...  (about 4k bytes)
    30