Windows libreOffice develpemet 搭建

本文详细介绍了在Windows环境下使用Visual Studio 2019编译LibreOffice源码的过程,包括所需软件的安装配置,如cygwin、jdk等,以及遇到的常见问题解决方案。

2020.7.10 Personal 7.1

 

参考:

https://wiki.documentfoundation.org/Development/lode

https://wiki.documentfoundation.org/Development/BuildingOnWindows#BitDefender_.2F_other_Anti-Virus_.2F_security_tools_breaking_the_build

https://wiki.documentfoundation.org/Development/How_to_debug

https://docs.libreoffice.org/

https://www.libreofficechina.org/%E8%AF%91-%E6%8E%A2%E7%B4%A2libreoffice%E7%9A%84%E6%BA%90%E4%BB%A3%E7%A0%81%E5%BA%93/

 

Windows安装Visual Studio2019

 

下载 setup-x86_64.exe

安装cygwin(可以在setup-x86里边安装)

进入 cygwin命令行

setup-x86_64.exe -P autoconf -P automake -P bison -P cabextract -P doxygen -P flex -P gcc-g++ -P gettext-devel git -P gnupg -P gperf -P make -P mintty -P nasm -P openssh -P openssl -P patch -P perl -P python -P python3 -P pkg-config -P rsync -P unzip -P vim -P wget -P zip -P perl-Archive-Zip -P perl-Font-TTF -P perl-IO-String

(Download Site: http://cygwin.mirror.constant.com)

git clone https://git.libreoffice.org/lode
cd lode
./setup --prereq
./setup
export LODE_HOME=lode的clone目录
./setup --dev --force
cd dev/core
./autogen.sh --with-jdk-home=D:/SoftInstall/jdk/jdk_9.0.4 --enable-dbgutil --enable-64-bit --disable-ccache --enable-pch

##make 2>&1 | tee build.log
make gb_COLOR=1  # gb_COLOR=1 enables colored output

 

编译失败:make clean

编译失败,后边使用

./autogen.sh --with-jdk-home=D:/SoftInstall/jdk/jdk_9.0.4 --enable-dbgutil --enable-64-bit --disable-ccache --enable-pch --disable-skia

make gb_COLOR=1  # gb_COLOR=1 enables colored output

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值