Build CODE for Android

Hello! I tried to compile Android on CollaboraOnline and the ARMv7 for LibreOffice was successfully compiled and working properly. CollaboraOnline android build the prompt JS, HTML and CSS has had been updated (android/lib/SRC/main/assets/dist).

However, in fact, my android/lib/ SRC /main directory does not generate assets directory, may I ask what causes it?
NDK version: 20.1.5948944 (same as the cross-compiled version of LibreOffice)
Configuration information for the CollaboraOnline Android compilation:

./configure  --enable-androidapp \
--with-lo-builddir=/LibreOffice/core-armv7 \
 --with-poco-includes=/opt/poco-android/include \
--with-poco-libs=/opt/poco-android/lib \
CC=/home/goalgo/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang \
CXX=/home/goalgo/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ \
--host=arm-linux-androideabi  \
--disable-setcap    --enable-silent-rules  --enable-debug   

I have solved the problems associated with building Android,
In addition to compiling from this article:Build for Android | Collabora Online - Community Page
We need to know that we should build on the 6.4 branch,
The branches that you need are:
core: distro/collabora/cp-6.4
online: distro/collabora/co-6-4

Hello! I used core 6.4 branch for android build, build(in-progress) is struck when trying to clone a sub module.


Submodule ‘translations’ (https://gerrit.libreoffice.org/translations) registered for path ‘translations’
Submodule ‘dictionaries’ (https://gerrit.libreoffice.org/dictionaries) registered for path ‘dictionaries’
Cloning into ‘/home/xx…/core/translations’…

Build is on hold at this point and does not go to next step, tried 3 times. Tried for 2 days as I beileve it is due to remote git not responding.
Any support in overcoming the current situation is much appreciated.

That’s strange I just clone the translations’ repository :thinking:

Hi Pedro,
Firstly thanks for trying it.
I tried to clone the translations repository idependently just as you did, still I get a similar response from the remote side.

Here’s the response,
~/Office_Android/test_translations_git$ git clone https://gerrit.libreoffice.org/translations.git
Cloning into ‘translations’…
remote: Counting objects: 921, done
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I tried git clone "https://git.libreoffice.org/translations" and it worked

I tried using git clone translations - Gitiles, it fails to download.

Here’s the output:
test_translations_git$ git clone translations - Gitiles
Cloning into ‘translations’…
remote: Counting objects: 921, done
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

However during the build it is referring to https://gerrit.libreoffice.org/translations, so initially I tried using the same link to confirm it.

Hi @svk did you happen to noticed the last Collabora Online Weekly Meeting #61 ?

  • had this problem (Szymon)
    • thought git doing nothing, opened the folder – cloned repo himself.
    • Same as for core repo – after pull this repo – go back to main repo – it works.

Could you try this please?

Hi @pedro.silva , as I mentioned earlier I am not able to clone the tranalations git independently too.
From below statement I guess Szymon succeeded when tried to clone independent module, correct me with more details of steps to be executed.
" thought git doing nothing, opened the folder – cloned repo himself."

/Office_Android/newCore64/core/translations$ git clone “translations - Gitiles
Cloning into ‘translations’…
remote: Counting objects: 927, done
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed