Menu

#54 Ubuntu 22.04.3 build fails: needs libhidapi-dev

v1.0_(example)
closed
None
2
2024-05-10
2024-05-07
Reece
No

Building on Ubuntu 22.04.3 (LTS) fails:

gcc -DCONFIG=\"/etc/ncid/artech2ncid.conf\" -DPIDFILE=\"/var/run/artech2ncid.pid\" -I. -I.. -I../lib -I/usr/local/include  -Wmissing-declarations -Wunused-variable -Wparentheses -Wreturn-type -Wuninitialized -Wsign-compare -Wformat -Wformat-zero-length -Wno-stringop-truncation   -c artech2ncid.c
In file included from artech2ncid.c:26:
artech2ncid.h:41:10: fatal error: hidapi/hidapi.h: No such file or directory
   41 | #include <hidapi/hidapi.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

This can be corrected by installing the package libhidapi-dev, which is not listed among the required DEB packages in the INSTALL file.

Discussion

  • John L. Chmielewski

    The INSTALL-DEB section in the website, and also in the source, list the libhidapi-devel package as required

    From the required section, libhidapi-dev is on the second line as indicated by "-->":

     The following packages are required:
         sudo apt install build-essential fakeroot
         --> sudo apt install libpcre2-dev libhidapi-dev
         sudo apt install libphonenumber-dev libicu-dev
         sudo apt install libpcap-dev zstd rename
         sudo apt install libconfig-simple-perl libdata-hexdump-perl
    

    You probably missed it, but thanks for reporting a possible error. It might worthwhile to include a script that would install the required packages.

     
  • John L. Chmielewski

    • status: open --> closed
    • assigned_to: John L. Chmielewski
     

Anonymous
Anonymous

Add attachments
Cancel