2022-11-23 16:32:25 +00:00
|
|
|
# Build Shared Library
|
|
|
|
|
2022-11-23 18:37:46 +00:00
|
|
|
## Prerequisites
|
|
|
|
|
2022-11-24 12:10:56 +00:00
|
|
|
* Follow the instructions in the home README.md to create the libblst.a.
|
|
|
|
* JAVA_HOME environment variable is set to a jdk with an `include` folder containing jni.h file.
|
2022-11-23 18:37:46 +00:00
|
|
|
|
2022-11-23 16:32:25 +00:00
|
|
|
## Windows
|
|
|
|
|
|
|
|
```bat
|
2022-11-23 18:37:46 +00:00
|
|
|
TBC
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Linux
|
|
|
|
|
|
|
|
```bash
|
2022-11-23 18:37:46 +00:00
|
|
|
clang -O -Wall -shared -fPIC -I../../blst/bindings -I../../src/ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -o lib/libckzg4844jni.so c_kzg_4844_jni.c ../../src/c_kzg_4844.c ../../blst/libblst.a
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Mac-OS
|
|
|
|
|
|
|
|
```bash
|
2022-11-23 18:37:46 +00:00
|
|
|
TBC
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|