Re: LO Viewer for Android: failures in make install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Terry,

On 08/02/2023 20.05, Terrence Enger wrote:
I am trying to follow the instructions at
"Development/BuildingForAndroid"
<https://wiki.documentfoundation.org/Development/BuildingForAndroid>;.
The step `make install` failed with messages (lines rewrapped).

     * Where:

     Build file
     '/home/terry/lo_hacking/git/android/android/source/build.gradle'
     line: 3

     * What went wrong:
     A problem occurred evaluating root project 'source'.
     Could not read script
     '/home/terry/lo_hacking/git/android/android/source/liboSettings.gradle'
     as it does not exist.

and

     Task failed with an exception.
     -----------
     * What went wrong:
     A problem occurred configuring root project 'source'.
     compileSdkVersion is not specified. Please add it to build.gradle

Christian Lohmaier has written
<https://listarchives.libreoffice.org/global/dev/2016/msg03930.html>
that a toplevel make will create the file.  I had just done a toplevel
make, but after another one, 'make install` failed similarly.

In build.gradle, line 3 is

     apply from: 'liboSettings.gradle'

The mentioned 'liboSettings.gradle' should actually be generated during the top-level make, so that sounds like that one isn't doing what it should in your case.

I am building on debian-sid, and my autogen.input, minus comments, is

     --enable-option-checking=fatal
     --with-vendor=Terrence Enger
     --with-external-tar=/home/terry/lo_hacking/git/src
     --build=x86_64-pc-linux-gnu
     --host=i686-linux-android
     --with-android-sdk=/home/terry/Android/Sdk
     --with-android-ndk=/home/terry/Android/Sdk/ndk/25.2.9519653
     --with-android-api-level=21
     --enable-dbgutil
     --with-theme=colibre
     --disable-zxing

and I have set envvar ANDROID_HOME=/home/terry/Android/Sdk

This is using NDK 25.2.9519653. From what commit are your trying to build? Does the top-level make succeed for you?

In my experience, building with NDK 25 required changes, s. https://gerrit.libreoffice.org/c/core/+/146135 (and change further down in the relation chain).

If you haven't applied these changes yet, I'd suggest to either do that or build with an older NDK until these changes have been merged to master (currently waiting for the new NDK to become availabe on Jenkins builders).

FYI, my autogen.input on Debian testing for master as of commit b2bd60b8c1937502857e12b0eea42323fd2353c8 currently looks like this:

    --build=x86_64-unknown-linux-gnu
    --with-android-ndk=/home/michi/Android/Sdk/ndk/20.0.5594570/
    --with-android-sdk=/home/michi/Android/Sdk
    --with-distro=LibreOfficeAndroidX86
    --enable-sal-log
    --with-external-tar=/home/michi/development/libreoffice-external
    --enable-ccache
    --enable-dbgutil
    --with-jdk-home=/usr/lib/jvm/java-17-openjdk-amd64/



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

  Powered by Linux