LINUX编译LibreOffice
- 安装依赖
sudo apt update
sudo apt install -y build-essential nasm git-core gnupg flex bison gperf libx11-dev \
libxext-dev libxrender-dev libxt-dev libxslt1-dev libglu1-mesa-dev \
libcairo2-dev libharfbuzz-dev libnss3-dev libnspr4-dev \
autoconf automake libtool
sudo apt install -y libpango1.0-dev xsltproc libxml2-utils python3-dev libkrb5-dev libcups2-dev libxrandr-dev libgtk-3-dev libgstreamer1.0-0 gstreamer1.0-plugins-base
sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-pulseaudio gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5
sudo apt install -y openjdk-21-jdk
- 下载源码
https://github.com/LibreOffice/core/tags
git clone https://github.com/LibreOffice/core.git libreoffice-core
cd libreoffice-core
- 编译
INSTALL_DIR=${HOME}/LibreOffice-Test
./autogen.sh
./configure \
--prefix=${INSTALL_DIR} \
--disable-gstreamer-1-0 \
--without-junit
make -j8
make install