50ButtonsEach / fliclib-linux-hci

Flic SDK for Linux
306 stars 54 forks source link

flicd binary does not run on ARMv8 64-bit (Odroid C2) #62

Open ristomatti opened 7 years ago

ristomatti commented 7 years ago

Recently I purchased an Odroid C2 to replace Raspberry Pi 3 as my home automation hub as it has received many good reviews as a more performant but similarly priced alternative to Raspberry Pi 3.

I even bought a BT dongle recommended in the README to make sure I'd still be able to use Flics with it. But to my surprise it does not seem to be compatible with the flicd binary:

$ bin/armv6l/flicd 
-bash: bin/armv6l/flicd: No such file or directory

Since flicd is not open source I cannot fix the issue by compiling the binary myself.

I understand there can be various reasons why the source is not available but would it be possible to release a binary for ARMv8? I'd be happy to help if there's something I could do (beta test for example).

Odroid C2 has an Amlogic S905 Quad Core Cortex™-A53 1.5GHz 64bit ARMv8 processor and the preinstalled OS is Ubuntu 16.04.

Emill commented 7 years ago

Could you try https://uploads.intercomcdn.com/i/o/19079167/2b97ccc25aa761b109c009ef/flicd-aarch64.tar.gz?

ristomatti commented 7 years ago

Wow that was REALLY fast response! Actually I managed to solve the issue. I realized ARMv8 should be backwards compatible with older versions and got the ARMv6 flicd binary working with:

sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install -y libc6:armhf libstdc++6:armhf

But of course a matching binary is even better. I'll give it a try!

ristomatti commented 7 years ago

Works like a charm. Thank you! :)

ristomatti commented 6 years ago

Could this binary be made available and the issue then closed? I see the binaries haven't been updated in over a year. I hope the development of flicd hasn't discontinued with the new Hub...

Emill commented 6 years ago

The opposite - a slightly modified version of the flicd is running inside the Flic hub. Once we get some time over we'll update the public SDKs also.

ristomatti commented 6 years ago

Good to hear!

PelleRavn commented 4 years ago

So you never got around to add the ARM64 (and others) version to the SDK?