This is a cache of https://discuss.96boards.org/t/android-ndk-for-dragonboard-410c/9811. It is a snapshot of the page at 2024-10-31T13:02:35.551+0000.
Android NDK for Dragonboard 410C - DragonBoard410c - 96Boards Forum

Android NDK for Dragonboard 410C

Hi,

I am trying to compile LXC containers for Dragonboard 410C running the latest Android release.
I have tried to use the latest r21 NDK from google and used the llvm based compiler aarch64-linux-android24-clang based toolchain.
On successfully compiling the code, when I try to execute the binary on the 410C , it gives me error as “No such file or directory”.

Running file on the executable shows, something like this:

venkata@venkata-HP-ENVY-Notebook:~/workspace/aosp/Containers/cba/lxc/odm/bin$ file lxc-start
lxc-start: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/, not stripped

Can you please help with the following information:
What is the toolchain in the NDK to be used is it 32 bit or 64 bit?
Can you please point to the working toolchain to be used for building Android?

Thanks
Venkata

Db410c uses 32 bit as a consequence of memory constraint (only 1 GB RAM).

AOSP and NDK bring along their own toolchain. Use what they come with.