1 Star 0 Fork 6

逆风飞扬 / librime

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

Rime with Windows

Prerequisites

librime is tested to work on Windows with the following build tools and libraries:

Python>=2.7 is needed to build opencc dictionaries.

You may need to update Boost when using a higher version of VS.

You can also build third-party libraries manually, by following instructions in the build script.

Get the code

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

or download from GitHub.

Setup a build environment

Copy env.bat.template to env.bat and edit the script according to your setup. Specifically, make sure BOOST_ROOT is set to the path to Boost source directory; modify CMAKE_GENERATOR and PLATFORM_TOOLSET if using a different version of Visual Studio; set DEVTOOLS_PATH for build tools installed to a custom location.

When prepared, run the following commands in a Developer Command Prompt window.

Build Boost

build.bat boost

Build third-party libraries

build.bat thirdparty

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

Build librime

build.bat librime

This creates build\lib\Release\rime.dll.

Try it in the console

copy /Y build\lib\Release\rime.dll build\bin
cd build\bin
echo "congmingdeRime{space}shurufa" | Release\rime_api_console.exe > output.txt
C++
1
https://gitee.com/ivu99/librime.git
git@gitee.com:ivu99/librime.git
ivu99
librime
librime
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891