c-kzg-4844/bindings/java/README.md

25 lines
494 B
Markdown
Raw Normal View History

# Build Shared Library
2022-11-23 18:37:46 +00:00
## Prerequisites
* 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
## Windows
```bat
2022-11-23 18:37:46 +00:00
TBC
```
## 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
```
## Mac-OS
```bash
2022-11-23 18:37:46 +00:00
TBC
```