navicat-keygen-2023/doc/how-to-build.md
Double Sine 73ff67d4a5
remove cxxopts library, it does not work better than before
Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
2022-02-15 17:15:22 +08:00

38 lines
698 B
Markdown

# navicat-keygen for linux - How to build?
[中文版](how-to-build.zh-CN.md)
## 1. Prerequisites
1. Install latest `CMake`:
```bash
$ sudo apt-get install cmake
```
2. Install `fmt`, `OpenSSL` and `rapidjson`:
```bash
$ sudo apt-get install libfmt-dev libssl-dev rapidjson-dev
```
## 2. Build
1. Clone:
```bash
$ git clone -b linux --single-branch https://notabug.org/doublesine/navicat-keygen.git
$ cd navicat-keygen
```
2. Build:
```bash
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . -- -j4
```
Then you will see two executable files, `navicat-keygen` and `navicat-patcher`, in `build` directory.