-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I downloaded and compiled hidapi from git.
$ git clone https://github.com/signal11/hidapi.git
$ git clone https://github.com/edorfaus/keytemper.git
$ cd hidapi
hidapi $ ./bootstrap
hidapi $ ./configure
hidapi $ make
hidapi $ sudo make install
hidapi $ cd ../keytemper
keytemper $ make HIDAPI_DIR=../hidapi/
cc -std=gnu99 -Wall -pedantic -Wextra -I../hidapi/hidapi -c -o keymap.o keymap.c
cc -std=gnu99 -Wall -pedantic -Wextra -I../hidapi/hidapi -L../hidapi/libusb/.libs -Wl,-rpath=../hidapi/libusb/.libs -lhidapi-libusb keytemper.c keymap.o -o keytemper
/tmp/ccyUbEhW.o: In function kt_write': keytemper.c:(.text+0x37): undefined reference tohid_write'
keytemper.c:(.text+0x5b): undefined reference to hid_error' /tmp/ccyUbEhW.o: In functionkt_read':
keytemper.c:(.text+0xad): undefined reference to hid_read_timeout' keytemper.c:(.text+0xd1): undefined reference tohid_error'
/tmp/ccyUbEhW.o: In function use_device': keytemper.c:(.text+0x6d6): undefined reference tohid_open_path'
keytemper.c:(.text+0x73e): undefined reference to hid_close' keytemper.c:(.text+0x7b4): undefined reference tohid_close'
/tmp/ccyUbEhW.o: In function main': keytemper.c:(.text+0x934): undefined reference tohid_init'
keytemper.c:(.text+0x978): undefined reference to `hid_exit'
collect2: error: ld returned 1 exit status
make: *** [keytemper] Error 1
Trying to copy and reference the individual hid.o file or lib files doesn't seem to help. Any ideas what happened?