polkaj icon indicating copy to clipboard operation
polkaj copied to clipboard

无法启动成功

Open kkww8090 opened this issue 5 years ago • 6 comments

求助!单元测试转账的操作,报如下问题:

image

kkww8090 avatar Oct 20 '20 10:10 kkww8090

@splix I have this question too. But I found that if I build on macOS, it only build /native/macos/*.dylib , so I use it to other OS like linux or windows, it will fail cause it can't load the correspond lib.

BomaxChen avatar Oct 21 '20 03:10 BomaxChen

@kkww8090 what OS you build polkaj project and what OS you use it ?

BomaxChen avatar Oct 21 '20 03:10 BomaxChen

@kkww8090 what OS you build polkaj project and what OS you use it ?

macOS 10.12.6

kkww8090 avatar Oct 21 '20 03:10 kkww8090

It builds the native lib only for the current OS.

But the official Jar (available through Maven or Github releases) includes binaries compiled for major OSes, i.e. it's multiplatform. You can download those jar instead of building local.

For that multiplatform lib it runs the compilation on different OSes, see here: https://github.com/emeraldpay/polkaj/blob/master/.github/workflows/publish.yaml#L11

splix avatar Oct 21 '20 03:10 splix

Just realized, if it doesn't build automatically during gradle build it's probably because you don't have Rust compiler installed. Try rustup: https://rustup.rs/

splix avatar Oct 21 '20 04:10 splix

@kkww8090 can you use cargo command? maybe compileRust fail at gradle

BomaxChen avatar Oct 21 '20 04:10 BomaxChen