Collabora online 24.04 android build problems

Hi.
Please help me.
I am beginner in developing collabora online android.
In order to build collabora online 24.04 android, followed as Build for Android | Collabora Online - Community Page
But i couldn’t build POCO from version 1.10.1 to 14.2 with androi NDK 23.
I got error “x86-64-linux-android.ar not found”, “i686-linux-android.ar not found” and “aarch64-linux-android.ar not found”.
Which version of poco can be built with android NDK 23?
How to solve it?
Also how to build collabora online 23.05 android?
Please help me ASAP.
Thank you.

Hello @james_brown

Quick Fix (NDK 23+)

Starting with NDK r23, the binutils tools like ar were removed in favor of LLVM tools (like llvm-ar). So instead of:

  • aarch64-linux-android-ar
    you now get:
  • llvm-ar (with --target=aarch64-linux-android)

Option 1: Set Environment Variables (Preferred)

Add this to your environment before building Poco:

export AR=llvm-ar
export RANLIB=llvm-ranlib

Also make sure to use:

export CC=clang
export CXX=clang++

Then rerun the Poco build step.

Make sure that llvm-ar is in your $PATH. It’s in $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/.