同步操作将从 lotem/librime 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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.
git clone --recursive https://github.com/rime/librime.git
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
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)
(cd xdebug/bin; echo "congmingdeRime{space}shurufa" | Debug/rime_api_console)
# REPL, quit with Control+d
(cd xdebug/bin; ./Debug/rime_api_console)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。