6
6
tools and libraries:
7
7
8
8
- Visual Studio 2022 or LLVM 16
9
- - [ Boost] ( http://www.boost.org/ ) =1.83
9
+ - [ Boost] ( http://www.boost.org/ ) > =1.83
10
10
- [ cmake] ( http://www.cmake.org/ ) >=3.10
11
11
12
12
Boost and cmake versions need to match higher VS version.
@@ -23,17 +23,21 @@ or [download from GitHub](https://github.com/rime/librime).
23
23
## Setup a build environment
24
24
25
25
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.
30
30
31
31
When prepared, do the following in a * Developer Command Prompt* window.
32
32
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.
34
38
35
39
``` batch
36
- build .bat boost
40
+ install-boost .bat
37
41
```
38
42
39
43
## Build third-party libraries
@@ -51,8 +55,8 @@ build.bat librime
51
55
```
52
56
This creates ` build\bin\Release\rime.dll ` .
53
57
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.
56
60
57
61
## Try it in the console
58
62
@@ -61,8 +65,6 @@ is working.
61
65
62
66
``` batch
63
67
cd build\bin
64
- echo congmingdeRime{space}shurufa | Release\rime_api_console.exe > output.txt
68
+ Release\rime_api_console.exe
69
+ congmingdeRime shurufa
65
70
```
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