project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.16k stars 1.9k forks source link

linux arm64 #34084

Open hassan-xy opened 4 days ago

hassan-xy commented 4 days ago

Reproduction steps

Well I am trying to build on the target arm64 board using linux yocto and a second board using ubuntu 18.04 as well. But the python package psutil is a unable to build for me and throws an error. The problem is with the python 3 headers missing. By the time I resolve this can anyone please share the chip-tool arm64 binary files with me. Even if it is incomaptible I would like to give it a try on my system.

Platform

other

Platform Version(s)

linux arm64. (Both yocto and ubuntu 18.04)

Type

Platform validated

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

No response

bzbarsky-apple commented 3 days ago

@andy31415

hassan-xy commented 3 days ago

Dont bother, I tried to build on rpi 4 ubuntu 22 and migrate it but failed with the openssl3 and glibc dependencies. I installed glibc 2.4 and above and also built openssl 3 , but somehow the linker path is not read by the binary.

root@b1edge:~# LD_LIBRARY_PATH=/opt/glibc-2.34/lib /opt/glibc-2.34/lib/ld-linux-aarch64.so.1 /opt/openssl-3.0.0/lib --library-path /opt/glibc-2.34/lib ./chip-tool /opt/openssl-3.0.0/lib: error while loading shared libraries: /opt/openssl-3.0.0/lib: cannot open shared object file: No such file or directory

I checked and the seems like the file exists but the error stays...

andy31415 commented 3 days ago

you can try to cross compile, however our sysroot is 22.04 so it will very likely not run on 18.

andy31415 commented 3 days ago

at the same time, psutil does not sound like a package that we really need for compilation, so you could try to trim down requirements from requirements.txt. The reality however will be that we do not try to support ubuntu 18.04 so errors are very likely.

hassan-xy commented 3 days ago

Ohhhh bummer....

I can't update my legacy system to Ubuntu 22.

However, I have a new device that uses Linux Yocto (Dunfell). It's quite popular among devs. Can you list down the system requirements so I can try to hack my way through the build process?