Re: error building libreoffice online android in android studio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread 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').
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux