All checks were successful
continuous-integration/drone/push Build is passing
38 lines
712 B
Markdown
38 lines
712 B
Markdown
---
|
|
title: Building mozc for macOS
|
|
date: 2022-05-20T00:00:00
|
|
---
|
|
|
|
[Mozc](https://github.com/google/mozc) is an open-source counterpart of Google Japanese Input, a Japanese input method developed by Google.
|
|
|
|
## Build environment
|
|
|
|
```
|
|
$ sw_vers
|
|
ProductName: macOS
|
|
ProductVersion: 12.6.1
|
|
BuildVersion: 21G217
|
|
|
|
$ xcodebuild -version
|
|
Xcode 14.1
|
|
Build version 14B47b
|
|
```
|
|
|
|
## Build mozc
|
|
|
|
```bash
|
|
# Install dependencies
|
|
brew install qt@5 bazel packages
|
|
|
|
# Clone the repository
|
|
git clone https://github.com/google/mozc -b master --single-branch --recursive
|
|
|
|
# Build
|
|
cd mozc/src
|
|
MOZC_QT_PATH=/usr/local/opt/qt@5 ANDROID_NDK_HOME= bazel build package --config macos -c opt
|
|
|
|
# Install
|
|
open bazel-bin/mac/Mozc.pkg
|
|
reboot
|
|
```
|