host_lib icon indicating copy to clipboard operation
host_lib copied to clipboard

Whl for ARM64 Linux

Open raefYoussef opened this issue 5 years ago • 3 comments

Hello, I'm having issues running the example code on my Raspberry PI 4. I currently use Ubuntu 20 and the processor is ARM64. Do you have an appropriate whl file for ARM64 Linux? I believe the one included already is meant for Intel x86-64. Thanks!

raefYoussef avatar Dec 03 '20 23:12 raefYoussef

Hi,

Did you run https://github.com/kneron/host_lib/blob/master/pkgs/kdp_host_api-1.1.2_Raspbian_-py3-none-any.whl in your Raspberry pi 4? We build this natively in Raspberry pi 4 in Raspian OS, which is the default OS for Raspberry pi 4. Could you try that? If it is not work, please post your error message here.

kiddjacky avatar Dec 03 '20 23:12 kiddjacky

I have a requirement to use Ubuntu. When I used the Raspbian whl I got the following error: OSError: /home/edge/.local/lib/python3.8/site-packages/kdp_host_api/libhostkdp.so: wrong ELF class: ELFCLASS32

When I use the Linux whl, I get the following error: OSError: /home/edge/.local/lib/python3.8/site-packages/kdp_host_api/libhostkdp.so: cannot open shared object file: No such file or directory

I have verified that the package exists in that location though. I believe it's a matter of incompatibility of the targeted OS being Intel x86-64 and the actual hardware being Aarch64/ARM64.

raefYoussef avatar Dec 04 '20 16:12 raefYoussef

Hello I wanted to follow up on this ticket. Is there anyway you can cross-compile your library to run on ARM64?

raefYoussef avatar Dec 08 '20 17:12 raefYoussef