编译LibreOffice for Android
来源:互联网 发布:聚合物水泥防水涂料js 编辑:程序博客网 时间:2024/06/05 04:10
基本环境
- 系统环境 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 testid -u
= 0 && ! grep -q ‘lxc|docker’ /proc/self/cgroup; then
改为
@if testid -u
= !0 && ! grep -q ‘lxc|docker’ /proc/self/cgroup; then
不然root权限执行也会错误 - 配置所有依赖
sudo apt-get build-dep libreoffice
必须使用ubuntu官方源 国内阿里和中科大源都没有
配置的源中缺少nss-3.29.5-with-nspr-4.13.1.tar.gz
https://dev-www.libreoffice.org/src/nss-3.29.5-with-nspr-4.13.1.tar.gz 进行下载 放到目录
/libreoffice/external/tarballs 和
/libreoffice/wordir_fot_build/UnpackedTarget
开始编译
- sudo make
注意事项
- android sdk版本必须25.3.0一下 高版本google把ant删除了。 下载build.gradle用到的api buildtool 等。
- android ndk版本必须在9~15.0中 。
- sdk ndk放到指定位置。/external/
- java版本好像没有要求 1.7 1.8都可以
- X86版本编译时候 高版本ndk中有个文件夹名字错误需要重命名。
- 总编译时间约2.5小时
- 最好全程科学上网。
参考网址:
- https://wiki.documentfoundation.org/Development/BuildingForAndroid
- https://wiki.documentfoundation.org/Development/BuildingOnLinux
- https://cgit.freedesktop.org/libreoffice/core/tree/README.cross
- https://stackoverflow.com/questions/42912824/the-ant-folder-is-suddenly-missing-from-android-sdk-did-google-remove-it
- http://blog.csdn.net/w7849516230/article/details/52556469
阅读全文
0 0
- 编译LibreOffice for Android
- LibreOffice 源码编译
- window 下编译LibreOffice源码
- 编译开源LibreOffice的Android版本——开源Office文档查看器
- libreoffice
- 编译truecrypt for android
- 编译truecrypt for android
- opencv for android 编译
- Chrome for android 编译
- xbmc for android 编译
- vlc-for-android编译
- 编译 chromium for android
- 编译librtmp for Android
- Gstreamer for android 编译
- live555 for android 编译
- OpenVpn for Android编译
- osg for Android编译
- chromium for android 编译
- halcon 旋转
- wind river 风河系统公司 发展历史:vxworks创造者
- 字符乱码问题
- Scala--- Set(集合)
- "="赋值运算的返回值
- 编译LibreOffice for Android
- PHP定时器实现每隔几秒运行一次
- 多线程编程之系统编程
- os.walk 遍历目录下目录和文件
- 【opencv】OpenCV中的KMeans算法介绍与应用(二)
- 小表格
- DIV和CSS
- 单例设计模式
- 如何完全卸载Oracle