基本环境
- 系统环境 ubuntu 17.0
- jdk 环境 oracle 1.8
- android sdk 25.2.5
- ndk 14
编译准备
- 拉取源码
git clone git://anongit.freedesktop.org/libreoffice/core libreoffice
cd libreoffice - 建立编译配置文件
autogen.input
–with-distro=LibreOfficeAndroid(默认) - armv7
Here is an autogen.input for Android on ARM when cross-compiling
from Linux:
–enable-dbgutil
–enable-werror
–with-distro=LibreOfficeAndroid - x86
And here is an (quite old) autogen.input for Android on X86:
–with-android-ndk=/opt/libreoffice/android-ndk-r8b
–with-android-ndk-toolchain-version=4.6
–with-android-sdk=/opt/libreoffice/android-sdk-linux
–build=i586-suse-linux
–enable-ccache
–with-distro=LibreOfficeAndroidX86 - 生成Makefile
./autogen.sh 执行该命令生成Makefile
生成的Makefile 的58行
@if

本文档介绍了在Ubuntu 17.0系统上编译LibreOffice for Android的步骤,包括设置环境(jdk 1.8,SDK 25.2.5,NDK 14),拉取源码,修改配置文件,安装依赖,以及编译过程中的注意事项,如Android SDK版本限制,NDK版本范围,以及特定版本NDK的文件夹重命名问题。整个编译过程大约需要2.5小时,并建议在整个过程中保持网络畅通。
最低0.47元/天 解锁文章
1600

被折叠的 条评论
为什么被折叠?



