librime is tested to work on Windows with the following build tools and libraries:
You may need to update Boost when using a higher version of VS.
The following command line tools from msysgit are needed by build.bat
to automate the build process:
- git, used by
build.bat thirdparty
to clonewindows
branch from lotem/leveldb - sed, used by
build.bat thirdparty
to edit project files for static-linking C++ runtime (/MT)
You can also build third-party libraries manually without them, by following instructions in the build script.
git clone git@github.com:lotem/librime.git
Copy env.bat
from env.bat.template
and edit the script according to your setup.
Specifically, make sure BOOST_ROOT
is set to the path where you extracted Boost source;
modify *_INSTALL_PATH
if you've installed build tools in a custom location.
When finished, run shell.bat
to complete the following steps in a prepared command prompt.
build.bat boost
build.bat thirdparty
This builds dependent libraries in thirdparty\src\*
, and copies artifacts to thirdparty\lib
and thirdparty\bin
.
build.bat
This creates build\lib\Release\rime.dll
.
copy /Y build\lib\Release\rime.dll build\bin
copy /Y thirdparty\bin\*.dll build\bin
cd build\bin
echo "congmingdeRime{space}shurufa" | Release\rime_api_console > output.txt