error building libreoffice online android in android studio

Michael Weghorn m.weghorn at
Mon Feb 10 07:15:54 UTC 2020


On 09/02/2020 16.49, RUTUJA BHAGWAN KENDRE wrote:
> Hello everyone
>   I am trying to  build libreoffice online android in android studio. I
> get this error
> 'Build command failed.
> Error while executing process
> /home/rutuja/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments
> {--build /home/rutuja/online/android/lib/.cxx/cmake/debug/armeabi-v7a
> --target androidapp}
> ninja: error:
> '/home/rutuja/libreoffice/android/source/jniLibs/armeabi-v7a/',
> needed by
> '/home/rutuja/online/android/lib/src/main/cpp/lib/armeabi-v7a/',
> missing and no known rule to make it'

I think building the native library "" from the
"core" git repo needs to be done from command line, not from Android
Studio; the README mentions

  Create an autogen.input file:


  Run ./ && make

In a later step, you can build the app from Android Studio.

Where is your "autogen.input" file located? It should be in the "core"
repo, not the "online" one and the above steps are meant to be run there.

> I have installed latest android studio version, cmake version is
> 3.6.4111459, gradle version is 6.1.1, ndk version 21. 
> My autogen.input
> looks like
> '# ARM Android
> --with-distro=LibreOfficeAndroid
> --with-distro=LibreOfficeAndroidX86
> # or Android x86 ( preferable if using an AVD Emulator )
> --with-android-sdk=/home/rutuja/Android/Sdk
> --with-android-ndk=/home/rutuja/Android/Sdk/ndk-bundle  

While that should be unrelated to your build failure, there is meant to
be only one 'with-distro=...' parameter, since the latter will overwrite
the former otherwise. So you should just have one of those, depending on
whether you want to build for the ARM architecture
('--with-distro=LibreOfficeAndroid') or x86

More information about the LibreOffice mailing list