1 Star 0 Fork 6

逆风飞扬 / librime

forked from lotem / librime 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-mac.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
lotem 提交于 2016-02-11 10:53 . Update README.

Rime with Mac

Preparation

Install Xcode with command line tools.

Install other build tools:

brew install cmake
brew install git

Install Boost:

brew install boost

You can also manually download and build Boost libraries from source code, then set BOOST_ROOT to the path of its top level directory prior to building librime.

Get the code

git clone --recursive https://github.com/rime/librime.git

or download from GitHub.

Build third-party libraries

cd librime
make -f Makefile.xcode thirdparty

This builds dependent libraries in thirdparty/src/*, and copies artifacts to thirdparty/lib and thirdparty/bin.

You can build an individual library, eg. opencc, with:

make -f Makefile.xcode thirdparty/opencc

Build librime

make -f Makefile.xcode

This creates xbuild/lib/Release/librime.dylib and command line tools xbuild/bin/Release/rime_*.

Or, make a debug build. This also creates a test in xdebug/test/.

make -f Makefile.xcode debug
# run the test
(cd xdebug/test; ./Debug/rime_test)

Try it in the console

(cd xdebug/bin; echo "congmingdeRime{space}shurufa" | Debug/rime_api_console)

# REPL, quit with Control+d
(cd xdebug/bin; ./Debug/rime_api_console)
C++
1
https://gitee.com/ivu99/librime.git
git@gitee.com:ivu99/librime.git
ivu99
librime
librime
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891