初衷
针对恶略环境下的自适应,记个笔记,苦于没有外网的arm架构环境,内网中安装个arm类型的deb,难如登天,突然发现这个好东西。
参考引用
x86架构的Ubuntu上通过Docker运行ARM架构的系统
前提
docker已经安装好
安装multiarch/qemu-user
dart
docker run --rm --privileged multiarch/qemu-user-static:register --reset
运行ubuntu:23.01
dart
docker run -it --platform arm64 -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static --name ubuntu ubuntu:23.01 /bin/bash
查看docker中ubuntu系统配置
dart
cat /etc/lsb-release
查看apt-get install 安装包
dart
/var/cache/apt/archives
下载libreoffice7.6.7.1源码
libreoffice-7.6.7.1.tar.xz
libreoffice-translations-7.6.7.1.tar.xz
libreoffice-dictionaries-7.6.7.1.tar.xz
libreoffice-help-7.6.7.1.tar.xz
解压
dart
tar -xf libreoffice-7.6.7.1.tar.xz
tar -xf libreoffice-translations-7.6.7.1.tar.xz
tar -xf libreoffice-dictionaries-7.6.7.1.tar.xz
tar -xf libreoffice-help-7.6.7.1.tar.xz
最终都解压至libreoffice-7.6.7.1文件夹
编译环境准备
更新库
dart
sudo apt-get install git build-essential zip ccache junit4 libkrb5-dev nasm graphviz python3 python3-dev qtbase5-dev libkf5coreaddons-dev libkf5i18n-dev libkf5config-dev libkf5windowsystem-dev libkf5kio-dev libqt5x11extras5-dev autoconf libcups2-dev libfontconfig1-dev gperf openjdk-17-jdk doxygen libxslt1-dev xsltproc libxml2-utils libxrandr-dev libx11-dev bison flex libgtk-3-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev ant ant-optional libnss3-dev libavahi-client-dev libxt-dev
参考链接
如何编译 LibreOffice
开发/Linux下的编译
编译结果
LibreOfficeDev_7.6.7.1_Linux_aarch64_deb.tar.gz
链接:https://pan.baidu.com/s/1M__OOYpB6Q5EXSZ8r0AqPw
提取码:7jks