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 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> 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 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.