컴퓨터/LibreOffice
Apple M1에서 리브레오피스(LibreOffice) 빌드 및 실행하기 기록
StudioEgo
2021. 6. 16. 23:07
이번에 Apple M1탑재된 MacBook Air를 구입하였습니다.



Apple M1 구입후, 초기 설정을 열심히 하였습니다.

초기 설정후, Xcode와 Homebrew를 설치하여, 소프트웨어 빌드 설정을 하였습니더.
Brew 링크
https://brew.sh/
Homebrew
The Missing Package Manager for macOS (or Linux).
brew.sh
개발 환경 설정을 한후에, 예전에 Intel기반의 Macbook Pro 2013 Late에서 설정했던 LODE를 이용하여 빌드 환경을 설정하였습니다.
https://wiki.documentfoundation.org/Development/lode
빌드 환경 설정이 완료되어서 core (LibreOffice의 빌드 소스) 디렉토리로 이동하여, 다음의 명령어로 빌드를 실행하였습니다.
./autogen.sh --with-locales="ko en-US zh ja" --with-vendor="DaeHyunSung" --disable-werror --with-lang="ko en-US ja zh-TW zh-CN" --enable-dbgutil
그런데, 빌드 설정이 실패하였습니다.
configure: error: in `/Users/sungdaehyun/dev/lode/dev/core':
configure: error: online update or breakpad/crashreporting are enabled, but no --with-privacy-policy-url=... was provided
해당 이슈에 대해서 왜 나오는지 이유를 알 수 없어, 내용을 IRC로 문의를 하니 다음과 같은 답변을 받았습니다.
10:25 PM <dhsung> Hello
10:25 PM <dhsung> Today, I bought new Apple M1 MacbookAir. So, I prepare autogen option for build. But, I found the message "online update or breakpad/crashreporting are enabled, but no --with-privacy-policy-url=... was provided" What is mean?
10:26 PM <mst___> either disable those features or use an arbitrary value for the url, it's just shown in a dialog somewhere
답변을 듣고, 구글링을 하고는 빌드 옵션 --disable-breakpad --disable-online-update
를 추가하였습니다.
./autogen.sh --with-locales="ko en-US zh ja" --with-vendor="DaeHyunSung" --disable-werror --with-lang="ko en-US ja zh-TW zh-CN" --enable-dbgutil --disable-breakpad --disable-online-update
옵션 추가 후, 빌드 설정이 완료됨을 나왔습니다.
To build, run:
/Users/****/dev/lode/opt/bin/make
To view some help, run:
/Users/****/dev/lode/opt/bin/make help
After the build has finished successfully, you can immediately run what you built using the command:
open instdir/LibreOfficeDev.app
If you want to run the smoketest, run:
/Users/****/dev/lode/opt/bin/make check
HOST config (config.warn)
*************************************
* WARNING : Cannot find Clang headers to build compiler plugins, plugins disabled.

이후에 make
로 빌드를 실행하였습니다.
Apple M1에서 빌드가 완료되고, 다음과 같이 빌드 완료된 프로그램 실행을 해보았습니다.
open instdir/LibreOfficeDev.app
실행이 아주 잘됩니다!

여기까지, Apple M1에서 LibreOffice(리브레오피스) 빌드 및 실행해보기 기록이였습니다.