2022-11-23 16:32:25 +00:00
|
|
|
# Build Shared Library
|
|
|
|
|
2022-11-23 18:37:46 +00:00
|
|
|
## Prerequisites
|
|
|
|
|
2022-11-24 18:05:12 +00:00
|
|
|
* Follow the instructions in the [README.md](../../README.md) to install blst and build the C-KZG code.
|
|
|
|
* `JAVA_HOME` environment variable is set to a JDK with an `include` folder containing a jni.h file.
|
2022-11-23 18:37:46 +00:00
|
|
|
|
2022-11-24 17:16:15 +00:00
|
|
|
## Build
|
2022-11-23 16:32:25 +00:00
|
|
|
```bash
|
2022-11-24 17:16:15 +00:00
|
|
|
make c_kzg_4844_jni
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|
|
|
|
|
2022-11-24 18:05:12 +00:00
|
|
|
This will install the library in the `src/main/resources/lib` folder according to your OS
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-24 17:16:15 +00:00
|
|
|
## Test
|
2022-11-23 16:32:25 +00:00
|
|
|
```bash
|
2022-11-24 17:16:15 +00:00
|
|
|
make test
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|