Skip to content

Commit 6d5bbc1

Browse files
authored
Update README-windows.md
1 parent 5c7fb64 commit 6d5bbc1

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

README-windows.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
tools and libraries:
77

88
- Visual Studio 2022 or LLVM 16
9-
- [Boost](http://www.boost.org/)=1.83
9+
- [Boost](http://www.boost.org/)>=1.83
1010
- [cmake](http://www.cmake.org/)>=3.10
1111

1212
Boost and cmake versions need to match higher VS version.
@@ -23,17 +23,21 @@ or [download from GitHub](https://github.com/rime/librime).
2323
## Setup a build environment
2424

2525
Copy `env.bat.template` to `env.bat` and edit the file according to your setup.
26-
Specifically, make sure `BOOST_ROOT` is set to the root directory of Boost
27-
source tree; modify `BJAM_TOOLSET`, `CMAKE_GENERATOR` and `PLATFORM_TOOLSET` if
28-
using a different version of Visual Studio; also set `DEVTOOLS_PATH` for build
29-
tools installed to custom location.
26+
If Boost libraries are available, set `BOOST_ROOT` to the root directory of
27+
Boost source tree; modify `BJAM_TOOLSET`, `CMAKE_GENERATOR` and
28+
`PLATFORM_TOOLSET` if using a different version of Visual Studio; also set
29+
`DEVTOOLS_PATH` for build tools installed to custom location.
3030

3131
When prepared, do the following in a *Developer Command Prompt* window.
3232

33-
## Build Boost
33+
## Install Boost
34+
35+
This step downloads Boost libraries in librime's default search path.
36+
If you have installed Boost libraries elsewhere, skip this step and set
37+
the environment varialble `BOOST_ROOT` to the installed path.
3438

3539
``` batch
36-
build.bat boost
40+
install-boost.bat
3741
```
3842

3943
## Build third-party libraries
@@ -51,8 +55,8 @@ build.bat librime
5155
```
5256
This creates `build\bin\Release\rime.dll`.
5357

54-
Build artifacts - the shared library along with API headers and supporting files
55-
are gathered in `dist` directory.
58+
Build artifacts: the shared library along with API headers and supporting files
59+
can be found in `dist` directory.
5660

5761
## Try it in the console
5862

@@ -61,8 +65,6 @@ is working.
6165

6266
``` batch
6367
cd build\bin
64-
echo congmingdeRime{space}shurufa | Release\rime_api_console.exe > output.txt
68+
Release\rime_api_console.exe
69+
congmingdeRime shurufa
6570
```
66-
67-
Instead of redirecting output to a file, you can set appropriate code page
68-
(`chcp 65001`) and font in the console to work with the REPL interactively.

0 commit comments

Comments
 (0)