Skip to content

phearnot/groth16verify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JNI for groth16verify

Build

To build zwaves.jar we need to cross compile the library for Linux, Windows and MacOS. This HOWTO is working for rust 1.38+ stable and Ubuntu 64bit.

If cross compilation for i686 windows broken in your enviroment

Build dll for win32 in native enviroment Comment lines for i686 in build_all.sh

Install gradle

Install gradle.

Install dependencies and add targets

# Install dependencies for cross compilation Linux to MacOS
apt install cmake clang gcc g++ zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev libxml2-dev libssl-dev gcc-multilib libc6-dev-i386 mingw-w64

# Install dependencies for cross compilation Linux to Windows
apt install mingw-w64

# Install dependencies for compilation 32bit binary
apt install gcc-multilib libc6-dev-i386


# Add Rust targets

rustup target add x86_64-apple-darwin
rustup target add i686-pc-windows-gnu
rustup target add x86_64-pc-windows-gnu
rustup target add i686-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu

Build jar

# build jar file
./build_all.sh 

Get zwaves.jar from javalib/build/libs/zwaves.jar.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 48.7%
  • Java 46.6%
  • Shell 3.8%
  • Batchfile 0.9%