Hiya all,
I have a USB Relay 2 that I'm planning on using Darryls code (https://github.com/darrylb123/usbrelay) to use to switch on and off the power to a usb 3 hub and and hard drive from my plug.
On the way to compiling usbrelay, I need hidapi (http://www.signal11.us/oss/hidapi), and here I have met with a problem. Although I I have everything working on Suse (it has hidapi as a package), there are issues on Arch (where I need to compile hidapi from source): During linking, I'm getting this error - and being relatively new to Linux linking, would like help to address:
$this->bbcode_second_pass_code('', 'g++ -Wall -g hid-libusb.o ../hidtest/hidtest.o `pkg-config libusb-1.0 libudev --libs` -o hidtest
/usr/bin/ld: hid-libusb.o: undefined reference to symbol 'pthread_join@@GLIBC_2.4'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:25: recipe for target 'hidtest' failed
make: *** [hidtest] Error 1')
Hints/help would be greatly appreciated!