注意,这里的 boost 是通过 scoop 安装的。

然后,在项目根目录下加一个 env.bat 文件,

rem Customize your build environment and save the modified copy to env.bat

set RIME_ROOT=%CD%

rem REQUIRED: path to Boost source directory
rem Boost installed via scoop
if not defined BOOST_ROOT set BOOST_ROOT=%USERPROFILE%\scoop\apps\boost\current

rem architecture, Visual Studio version and platform toolset
set ARCH=Win32
set BJAM_TOOLSET=msvc-14.5
set CMAKE_GENERATOR="Visual Studio 18 2026"
set PLATFORM_TOOLSET=v145

rem OPTIONAL: path to additional build tools
rem set DEVTOOLS_PATH=%ProgramFiles%\Git\cmd;%ProgramFiles%\CMake\bin;C:\Python27;

然后,依次执行:

.\build.bat deps 
.\build.bat librime

这个基本是来自官方的 README:

https://github.com/rime/librime/blob/master/README-windows.md

之后,编译好了之后,就可以使用命令行的 REPL 工具来检测一下看看使用效果了,

cd .\build
.\Release\rime_api_console.exe