Yepkit / ykurcmd

YKUR USB Relay Board Control Utility
MIT License
1 stars 2 forks source link

build.sh not building on Raspberry Pi #2

Closed Leuli closed 6 years ago

Leuli commented 6 years ago

The build script builds hidapi and copies the libhidapi .so files:

cp -fv hidapi/linux/libhidapi-hidraw.so ykurcmd/linux/ ... cp -fv hidapi/libusb/libhidapi-libusb.so ykurcmd/linux/

However, in the makefile, the .so files from ykurcmd/inc are used. This doesn't work because these files are x86, however the Raspberry Pi runs on an ARM architecture.

I changed the lines in build.sh to

cp -fv hidapi/linux/libhidapi-hidraw.so ykurcmd/inc/ ... cp -fv hidapi/libusb/libhidapi-libusb.so ykurcmd/inc/

Then it worked.

Great product btw :)

yep1 commented 6 years ago

Thanks for the feedback.