Building for android gives an error.

2019-08-29 Thread TheIstere .
Hello.

I am trying to build libreoffice for android.
Can someone help me to fix the following error?

...
[MAK] CustomTarget/android/source/done
creating liboSettings.gradle
[build PY ] native-code.cxx
/bin/sh: 1: /home/lexboss/Projects/libreoffice/solenv/bin/native-code.py:
not found
Makefile:15: recipe for target 'native-code.cxx' failed
make[2]: *** [native-code.cxx] Error 127
/home/lexboss/Projects/libreoffice/android/CustomTarget_lo_android.mk:17:
recipe for target
'/home/lexboss/Projects/libreoffice/workdir/CustomTarget/android/source/done'
failed
make[1]: ***
[/home/lexboss/Projects/libreoffice/workdir/CustomTarget/android/source/done]
Error 2
Makefile:282: recipe for target 'build' failed
make: *** [build] Error 2

I am on Ubuntu 18.04.2 LTS
My autogen.input is:
--with-distro=LibreOfficeAndroid
--with-android-sdk=/home/lexboss/Android/Sdk
--with-android-ndk=/home/lexboss/Android/android-ndk-r20
--with-jdk-home=/usr/lib/jvm/java-8-openjdk-amd64
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Application crashes with bootstrapping exception built on libreoffice-6-3-2 branch

2019-09-23 Thread TheIstere .
Hello,

I have built the branch libreoffice-6-3-2 at the latest commit at the
moment of writing (bump product version to 6.3.2.2.0+, sha
ca6474072f7435a6dea68dc29f224738a04faaff) for android.
I have built it on Ubuntu 18.04.3 LTS

My autogen.input is:
--with-distro=LibreOfficeAndroid
--with-android-sdk=/home/lexboss/Android/Sdk
--with-android-ndk=/home/lexboss/Android/android-ndk-r16b
--with-jdk-home=/usr/lib/jvm/java-8-openjdk-amd64

When running the generated application (LibreOffice-strippedUI-debug.apk) I
am getting the following crash when opening any document:

2019-09-23 09:48:48.584 31180-31180/org.example.libreoffice
W/LibreOfficeMainActivity: onCreate..
2019-09-23 09:48:48.630 31180-31180/org.example.libreoffice
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using
android:theme instead.
2019-09-23 09:48:48.908 31180-31180/org.example.libreoffice I/chatty:
uid=10694(org.example.libreoffice) identical 2 lines
2019-09-23 09:48:48.916 31180-31180/org.example.libreoffice
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using
android:theme instead.
2019-09-23 09:48:49.113 31180-31180/org.example.libreoffice I/GeckoAxis:
Prefs: 0.96174634,0.99271643,2.4,0.012,0.461843,0.3,0.5
2019-09-23 09:48:49.129 31180-31180/org.example.libreoffice
E/org.mozilla.gecko.gfx.LayerView: ### Creating GL thread!
2019-09-23 09:48:49.156 31180-31180/org.example.libreoffice
D/LibreOfficeMainActivity: SCHEME_FILE: getPath():
/storage/emulated/0/Download/Lik_Anastasiya_Eli_(si)_Litmir.net_bid208451_original_42196
(2).docx
2019-09-23 09:48:49.198 31180-31180/org.example.libreoffice
I/LibreOfficeMainActivity: onStart..
2019-09-23 09:48:49.200 31180-31180/org.example.libreoffice
I/LibreOfficeMainActivity: onResume..
2019-09-23 09:48:49.207 31180-31952/org.example.libreoffice I/lo-bootstrap:
putenv(SAL_LOG=+WARN+INFO)
2019-09-23 09:48:49.217 31180-31952/org.example.libreoffice
I/LibreOfficeKit: Initializing LibreOfficeKit,
dataDir=/data/user/0/org.example.libreoffice
2019-09-23 09:48:49.217 31180-31952/org.example.libreoffice I/lo-bootstrap:
redirect_stdio: stdout pipe: [60,62], stderr pipe: [63,64]
2019-09-23 09:48:49.219 31180-31952/org.example.libreoffice
I/LibreOfficeKit: Setting FONTCONFIG_FILE to
/data/user/0/org.example.libreoffice/etc/fonts/fonts.conf
2019-09-23 09:48:49.219 31180-31952/org.example.libreoffice
I/LibreOfficeKit: LibreOfficeKit: libreofficekit_initialize finished
2019-09-23 09:48:49.243 31180-31954/org.example.libreoffice I/stderr:
Bootstrapping exception 'file:///fonts/fonts.conf/program/udkapi.rdb: no
such file'

- beginning of crash
2019-09-23 09:48:49.244 31180-31952/org.example.libreoffice A/libc: Fatal
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 31952
(Thread-2), pid 31180 (ple.libreoffice)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Fwd: Application crashes with bootstrapping exception built on libreoffice-6-3-2 branch

2019-09-27 Thread TheIstere .
Hello, thank you for reply.

Actually I have fixed an issue myself the next day, but didn't replied in
mail because I wanted to check out if someone is reading this mailing list
or not.

You are right. I needed this commit from master branch
https://github.com/LibreOffice/core/commit/9712f5d2316fa469b92f2f8092925e2cd4e8dd5b

If you can, please try to help with more complex issue
https://bugs.documentfoundation.org/show_bug.cgi?id=127781


пт, 27 сент. 2019 г. в 12:01, Miklos Vajna :

> Hi,
> Could you please try building master? 6-3 was branched off from master
> half a year ago, it's possible your problem is already fixed.
>
> Thanks,
>
> Miklos
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Fwd: Application crashes with bootstrapping exception built on libreoffice-6-3-2 branch

2019-09-27 Thread TheIstere .
Hello,

I thought that 6-3-2 is considered as more stable :)

Thanks. I will try it with master, although as I remember I tried it some
weeks ago.

On Fri, 27 Sep 2019 at 12:58, Jan Holesovsky  wrote:

> Hi,
>
> TheIstere . píše v Pá 27. 09. 2019 v 12:09 +0300:
>
> > If you can, please try to help with more complex
> > issue https://bugs.documentfoundation.org/show_bug.cgi?id=127781
>
> Please switch to master as Miklos suggested, the branch is not 64bit
> ready; I think Cloph has done some improvements in master recently
> though.
>
> May I ask why do you insist on building from the branch? :-)
>
> All the best,
> Kendy
>
> --
С уважением, Ильнур Шафигуллин
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Fwd: Application crashes with bootstrapping exception built on libreoffice-6-3-2 branch

2019-09-27 Thread TheIstere .
Hello,

I have just tried it out with master branch. As before I have compiled it
for aarch64 (arm64-v8a).
As like with libreoffice-6-3-2 branch some fixes were required to compile
it:

1. Fixing nss error: "checking host system type... Invalid configuration
`aarch64-unknown-linux-android': machine `aarch64-unknown-linux' not
recognized"
cp config.guess
workdir_for_build/UnpackedTarball/nss/nspr/build/autoconf/config.guess
cp config.guess workdir/UnpackedTarball/nss/nspr/build/autoconf/config.guess
cp config.sub
workdir_for_build/UnpackedTarball/nss/nspr/build/autoconf/config.sub
cp config.sub workdir/UnpackedTarball/nss/nspr/build/autoconf/config.sub

2. Missing types when compiling bridge.
I copied share.hxx file from gcc3_linux_x86-64 directory and included in
two files (uno2cpp.cxx and abi.cxx) #include "share.hxx"

3. nss again:
added directive #define NS_PTR_GT_32 in:
./workdir_for_build/UnpackedTarball/nss/nss/lib/freebl/drbg.c
./workdir/UnpackedTarball/nss/nss/lib/freebl/drbg.c

4. Neon errors when compiling libpng like this:
error: undefined reference to 'png_riffle_palette_neon'
error: undefined reference to 'png_do_expand_palette_rgba8_neon'
undefined reference to 'png_init_filter_functions_neon'
../Bootstrap/Makefile.shared:60: recipe for target
'obj/local/arm64-v8a/liblo-native-code.so' failed
make[2]: *** [obj/local/arm64-v8a/liblo-native-code.so] Error 1

So, I disabled neon optimisations:
Changing the line number 130 in pngpriv.h form
define PNG_ARM_NEON_OPT 2
to
define PNG_ARM_NEON_OPT 0.

Then I have got an apk and when I am trying to open a document the crash
happens. The first time I try it libreoffice shows loader for a long time
and then crashes, after that when opening a documents it crashes almost
immediately.

I have created a bug-report here
https://bugs.documentfoundation.org/show_bug.cgi?id=127781

Is there any plans to make libreoffice working on aarch64 ? Because Google
Play now requires that all apps have also 64-bit versions of used native
libraries.

пт, 27 сент. 2019 г. в 13:44, Christian Lohmaier :

> Hi *,
>
> On Fri, Sep 27, 2019 at 11:58 AM Jan Holesovsky 
> wrote:
> >
> > TheIstere . píše v Pá 27. 09. 2019 v 12:09 +0300:
> >
> > > If you can, please try to help with more complex
> > > issue https://bugs.documentfoundation.org/show_bug.cgi?id=127781
> >
> > Please switch to master as Miklos suggested, the branch is not 64bit
> > ready; I think Cloph has done some improvements in master recently
> > though.
>
> although only for x86_64
>
> aarch64 needs at least a patch to nss - it's configure/auto-detection
> stuff doesn't bother checking for aarch64, so resets cpu arch to arm
> otherwise, resulting in incompatible libs.
> And I guess it also will need some related fixes in bridges, similar
> to how it was done for arm (didn't look into that yet).
>
> But to also state it: There is no point in building the android
> version from a branch, it is best to use master for that. - that is
> the only branch that gets built by the only tinderbox we have for it,
> and the only branch where anything android related is done, there are
> no cherry-picks or backports to release branches for android stuff..
>
> ciao
> Christian
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice