22 Ocak 2019 Salı

How to build LibreOffice Android Viewer on Linux

After a fresh build Android Viewer on Ubuntu 18.04 with LibreOffice 6.3.0 just wanted write a valid instruction list. (note to myself)

0- Install build dependencies:

$ sudo apt-get build-dep libreoffice

If there are throuble about packages please read build dependencies instructions for your distribution: https://wiki.documentfoundation.org/Development/BuildingOnLinux#Build_dependencies

1- Install Android Studio.

2- Open Android Studio -> Find SDK Manager and make sure following versions were checked:

 3- Go SDK Tools tab and make sure 27.0.3 was checked. And apply. (It will warn you for storage space. Please make sure you have enough space.)

4- Install java 8:

The instructions are well described here. https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04

5- Download ndk 16b


6- Download LibreOffice source code:

$ git clone https://gerrit.libreoffice.org/core libreoffice
$ cd libreoffice

7- Create autogen.input file. Append following paramater in it.


(Use your own paths for SDK and NDK)

8- Run configure.

$ ./autogen.sh

9- Build

$ make

10- Result

When you run $ git status command you will see where apk generated in the source code. Now you can install it to an Android device. (Make sure your settings let you install app from unknown source.)

Hiç yorum yok:

Yorum Gönder