Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Hi,

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/liblo-native-code.so',
needed by
'/home/rutuja/online/android/lib/src/main/cpp/lib/armeabi-v7a/liblo-native-code.so',
missing and no known rule to make it'

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

  Create an autogen.input file:

      --build=x86_64-unknown-linux-gnu
      --with-android-ndk=/home/$USER/Android/Sdk/ndk-bundle
      --with-android-sdk=/home/$USER/Android/Sdk
      --with-distro=LibreOfficeAndroid
      --enable-sal-log

  Run ./autogen.sh && 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
('--with-distro=LibreOfficeAndroidX86').

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.