Groups | Search | Server Info | Login | Register
Groups > de.comp.os.unix.programming > #2992
| From | Thomas Orgelmacher <trash@odbs.org> |
|---|---|
| Newsgroups | de.comp.os.unix.programming |
| Subject | libhidapi |
| Date | 2022-02-27 13:00 +0100 |
| Organization | Organization? What Organization? |
| Message-ID | <4n5sei-ico.ln1@gate.odbs.lan> (permalink) |
Hallo Zusammen! Ich versuche gerade eine Relais-Karte mittels libhidapi anzusteuern und bekomme das Beipielprogramm nicht übersetzt. Genauer gesagt: ich kann es nicht linken. Es geht um dieses hier: https://github.com/signal11/hidapi Wenn ich das mit "gcc -lhidapi-libusb -ohidapi-test hidapi-test.c" unter Debian 11.1 übersetze, bekomme ich immer: | /usr/bin/ld: /tmp/ccJfgyXE.o: in function `main': | tt1.c:(.text+0x19): undefined reference to `hid_init' | /usr/bin/ld: tt1.c:(.text+0x30): undefined reference to `hid_open' | /usr/bin/ld: tt1.c:(.text+0x4f): undefined reference to `hid_get_manufacturer_string' | /usr/bin/ld: tt1.c:(.text+0x88): undefined reference to `hid_get_product_string' | /usr/bin/ld: tt1.c:(.text+0xc1): undefined reference to `hid_get_serial_number_string' | /usr/bin/ld: tt1.c:(.text+0x101): undefined reference to `hid_get_indexed_string' | collect2: error: ld returned 1 exit status Mit libhidapi-hidraw sieht es genau so aus. Die Libraries sind definitiv installiert und laut nm sind die ganzen Symbole auch enthalten. Auch die Abhängigkeiten seitens libhidapi sind erfüllt. Was kann denn hier noch im Argen sein? Gruß, Thomas -- I have seen things you lusers would not believe. I've seen Sun monitors on fire off the side of the multimedia lab. I've seen NTU lights glitter in the dark near the Mail Gate. All these things will be lost in time, like the root partition last week.
Back to de.comp.os.unix.programming | Previous | Next — Next in thread | Find similar
libhidapi Thomas Orgelmacher <trash@odbs.org> - 2022-02-27 13:00 +0100
Re: libhidapi Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2022-02-27 12:17 +0000
Re: libhidapi Thomas Orgelmacher <trash@odbs.org> - 2022-02-27 14:20 +0100
Re: libhidapi Frank Beythien <nospam_2022@efbe.prima.de> - 2022-02-27 15:23 +0100
Re: libhidapi Stefan Reuther <stefan.news@arcor.de> - 2022-02-28 17:18 +0100
Re: libhidapi Thomas Orgelmacher <trash@odbs.org> - 2022-03-01 19:58 +0100
csiph-web