Update bdk-jvm README build instructions
The current build instructions for bdk-jvm are insufficient for someone to build bdk-jvm from scratch. It's not outlined that JDK 11 and Rust is required on the system.
This commit is contained in:
parent
871a06d1ce
commit
d8718c3f05
@ -49,17 +49,25 @@ dependencies {
|
|||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
_Note that Kotlin version `1.6.10` or later is required to build the library._
|
_Note that Kotlin version `1.6.10` or later is required to build the library._
|
||||||
|
1. Install JDK 11. It must be JDK 11 (not 17), otherwise it won't build. For example, with SDKMAN!:
|
||||||
1. Clone this repository.
|
```shell
|
||||||
|
curl -s "https://get.sdkman.io" | bash
|
||||||
|
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
|
sdk install java 11.0.19-tem
|
||||||
|
```
|
||||||
|
2. Install rust:
|
||||||
|
```shell
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
```
|
||||||
|
3. Clone this repository.
|
||||||
```shell
|
```shell
|
||||||
git clone https://github.com/bitcoindevkit/bdk-ffi
|
git clone https://github.com/bitcoindevkit/bdk-ffi
|
||||||
```
|
```
|
||||||
2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions.
|
4. If building on macOS install required intel and m1 jvm targets
|
||||||
3. If building on macOS install required intel and m1 jvm targets
|
|
||||||
```sh
|
```sh
|
||||||
rustup target add x86_64-apple-darwin aarch64-apple-darwin
|
rustup target add x86_64-apple-darwin aarch64-apple-darwin
|
||||||
```
|
```
|
||||||
4. Build kotlin bindings
|
5. Build kotlin bindings
|
||||||
```sh
|
```sh
|
||||||
# build JVM library
|
# build JVM library
|
||||||
./gradlew buildJvmLib
|
./gradlew buildJvmLib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user