Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > de.comp.os.unix.programming > #2992

libhidapi

Path csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!gate.odbs.lan!not-for-mail
From Thomas Orgelmacher <trash@odbs.org>
Newsgroups de.comp.os.unix.programming
Subject libhidapi
Date Sun, 27 Feb 2022 13:00:04 +0100
Organization Organization? What Organization?
Message-ID <4n5sei-ico.ln1@gate.odbs.lan> (permalink)
Reply-To news10@odbs.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Info tota-refugium.de; logging-data="1955282"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
Cancel-Lock sha1:R8vOLV32vjwZ48NTPvb5cCVDq2E=
X-User-ID eJwFwQkBwCAMA0BLY3mgcoA1/iXsTvDwnbRMRaHE+62YjOPdQaCs+9YDnO2DCD3YJ4XZ9fXkavLI4q4fXrUVuA==
Content-Language de-DE
Xref csiph.com de.comp.os.unix.programming:2992

Show key headers only | View raw


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 | NextNext in thread | Find similar


Thread

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