cancel
Showing results for 
Search instead for 
Did you mean: 

SmartPresenceDetectionKit_LnA_1.0.0 on raspberry pi

nickw
Associate

Hi

I am trying to use this on a raspberry pi4 running ubuntu 2404. I am able to run make successfully but on trying to run the generated binary I get

./spdkit error while loading shared libraries: /lib/aarch64-linux-gnu/libc.so: invalid ELF

I don't know what to do to fix it. I did not install the linaro toolchain as I was not cross compiling - is that likely to be causing this error ?

1 REPLY 1
pengfei
ST Employee

I tried it on RPI 4b ubuntu 20.04 and didn't get your problem. Here is the info on my side.

raspberrypi@ubuntu:~/SmartPresenceDetectionKit_release$ ldd ./spdkit

        linux-vdso.so.1 (0x0000ffff86dab000)

        libspd.so => /home/raspberrypi/SmartPresenceDetectionKit_release/SPD/Lib/lib64/libspd.so (0x0000ffff86d00000)

        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffff86c50000)

        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff86a90000)

        /lib/ld-linux-aarch64.so.1 (0x0000ffff86d6e000)

raspberrypi@ubuntu:~/SmartPresenceDetectionKit_release$ file /lib/aarch64-linux-gnu/libc.so.6

/lib/aarch64-linux-gnu/libc.so.6: ELF 64-bit LSB shared object, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=1d7249a4f207d07166ff4be43acdc68a01faaa04, for GNU/Linux 3.7.0, stripped

 

According to your info "the “libc.so: invalid ELF”. Maybe it’s because of a damaged libc and you need only reinstall the system.