Build LibreOffice:修订间差异
创建页面,内容为“Prepare dependencies:<ref>https://wiki.documentfoundation.org/Development/lode</ref> <syntaxhighlight lang="bash"> git clone https://gerrit.libreoffice.org/lode cd lode ./setup ~/.zshrc export LODE_HOME=$HOME/lode export PATH="${LODE_HOME}/opt/bin:${PATH}" </syntaxhighlight> Build core:<ref>https://wiki.documentfoundation.org/Development/GenericBuildingHints</ref> <syntaxhighlight lang="bash"> git clone https://github.com/LibreOffice/core.git cd core ./autog…” |
无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第16行: | 第16行: | ||
cd core | cd core | ||
./autogen.sh | ./autogen.sh | ||
make check | |||
</syntaxhighlight> | |||
Error: | |||
<syntaxhighlight lang="bash"> | |||
checking for bogus pkg-config... configure: error: yes, from unknown origin. This *will* break the build. Please modify your PATH variable so that /usr/local/bin/pkg-config is no longer found by configure scripts. | |||
Error running configure at ./autogen.sh line 321. | |||
</syntaxhighlight> | |||
Workaround: | |||
<syntaxhighlight lang="bash"> | |||
sudo mv /usr/local/bin/pkg-config /usr/local/bin/pkg-config.bak | |||
./autogen.sh | |||
make check | |||
</syntaxhighlight> | |||
Error: Same error here:<ref>https://www.spinics.net/lists/libreoffice/msg07834.html</ref> | |||
<syntaxhighlight lang="bash"> | |||
make check | |||
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j 8 -rs -f /Users/riguz/Documents/apps/office/core/Makefile.gbuild unitcheck slowcheck subsequentcheck check | |||
/Users/riguz/Documents/apps/office/core/solenv/gbuild/LinkTarget.mk:931: *** extraneous `endef'. Stop. | |||
make: *** [build] Error 2 | |||
</syntaxhighlight> | |||
Fix: Use newer `make`, there's already a new version in lode: | |||
<syntaxhighlight lang="bash"> | |||
/Users/riguz/Documents/apps/office/lode/opt/bin/make check | |||
</syntaxhighlight> | </syntaxhighlight> |
2024年6月26日 (三) 02:48的最新版本
Prepare dependencies:[1]
git clone https://gerrit.libreoffice.org/lode
cd lode
./setup
~/.zshrc
export LODE_HOME=$HOME/lode
export PATH="${LODE_HOME}/opt/bin:${PATH}"
Build core:[2]
git clone https://github.com/LibreOffice/core.git
cd core
./autogen.sh
make check
Error:
checking for bogus pkg-config... configure: error: yes, from unknown origin. This *will* break the build. Please modify your PATH variable so that /usr/local/bin/pkg-config is no longer found by configure scripts.
Error running configure at ./autogen.sh line 321.
Workaround:
sudo mv /usr/local/bin/pkg-config /usr/local/bin/pkg-config.bak
./autogen.sh
make check
Error: Same error here:[3]
make check
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j 8 -rs -f /Users/riguz/Documents/apps/office/core/Makefile.gbuild unitcheck slowcheck subsequentcheck check
/Users/riguz/Documents/apps/office/core/solenv/gbuild/LinkTarget.mk:931: *** extraneous `endef'. Stop.
make: *** [build] Error 2
Fix: Use newer `make`, there's already a new version in lode:
/Users/riguz/Documents/apps/office/lode/opt/bin/make check