Announcement

Collapse
No announcement yet.

libhib library?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    libhib library?

    Hello Everyone,

    I would like to install the "libhib" library for 20.04.
    I need it for compiling a patched version of avrdude 6.3.
    This is the summary of the patched avrdude 6.3 configuration:

    Configuration summary:
    ----------------------
    DO HAVE libelf
    DO HAVE libusb
    DO HAVE libusb_1_0
    DO HAVE libftdi1
    DO HAVE libftdi (but prefer to use libftdi1)
    DON'T HAVE libhid
    DO HAVE pthread
    DISABLED doc
    ENABLED parport
    DISABLED linuxgpio


    ​Where do I find it and how do I install it?
    The software repositories do not seem to have it.

    Thanks, Peter

    #2
    You state "I would like to install the "libhib" library"
    and later write "DON'T HAVE libhid​"

    If you are looking for libhib then you won't find it. Libhid dev files are in the repository, OR, you can check http://bfoz.github.io/libhid/
    or visit his github: https://github.com/bfoz/libhid
    or use the git command to pull down the code base.

    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Thanks for the reply!

      The "DON'T HAVE libhid​"​ statement comes from running ./configure of the patched avrdude 6.3, as it reported it.
      So I guess I would need the libhib library, that is the reason I would like to install it.
      I did see the git web page by Brandon Fosdic, it gives directions on how to include that library into a git project.
      I you could give some help on how to install that library into the OS I would appreciate it.

      Thanks, Peter

      Comment


        #4
        You need to find what Debian/ubuntu call the packages that provide this, then install the "-dev" package for it.
        Use muon or the command-line to search for libhid:

        Code:
        $ apt search libhid
        Sorting... Done
        Full Text Search... Done
        libhidapi-dev/jammy 0.11.2-1 amd64
        Multi-Platform library for communication with HID devices (development files)
        
        libhidapi-hidraw0/jammy,now 0.11.2-1 amd64 [installed,automatic]
        Multi-Platform library for communication with HID devices (hidraw backend)
        
        libhidapi-libusb0/jammy 0.11.2-1 amd64
        Multi-Platform library for communication with HID devices (libusb backend)
        
        ​
        So, assuming that libhidapi is the same as the libhid, then you want to install libhidapi-dev
        You likely will need to find and install other dev packages for whatever other similar error messages pop up.

        But there is an easier way, since avrdude is available in the Ubuntu repos already, you can easily install most of the build dependencies with a couple of steps;

        First, in Discover >> Settings >> Software Sources, check the "sources" box as shown.
        Click image for larger version

Name:	Screenshot_20230326_092734-1.png
Views:	208
Size:	143.7 KB
ID:	669420
        Update and install (most of) the build dependencies like so:
        Code:
        sudo apt update && sudo apt build-dep avrdude
        There is a good chance you will still need to track down and install other -dev packages.

        Comment

        Working...
        X