Skip to content

cypherstack/flutter_libepiccash

Repository files navigation

flutter_libepiccash

Dependencies

Rust

Install Rust: https://www.rust-lang.org/tools/install

rustup install 1.67.1
rustup default 1.67.1

cargo-ndk

cargo install cargo-ndk

Android

Add targets to rust

rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android

Install dependencies

# https://github.com/EpicCash/epic/blob/master/doc/build.md#requirements
sudo apt install build-essential \
	cmake \
	git \
	libgit2-dev \
	clang \
	debhelper \
	libclang-dev \
	libncurses5-dev \
	libncursesw5-dev \
	zlib1g-dev \
	pkg-config \
	llvm \
	cargo \
	rustc \
	opencl-headers \
	libssl-dev \
	ocl-icd-opencl-dev \
	libc6-dev-i386

Build

cd scripts/android
./install_ndk.sh
./build_all.sh

iOS

Add targets to rust

rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim

Install dependencies

cargo install cargo-lipo
cargo install cbindgen

Build

cd scripts/ios
./build_all

Windows

Dependencies

Run scripts/windows/deps.sh in WSL (may need to alter permissions like with chmod +x *.sh) to install x86_64-w64-mingw32-gcc and clang or run

sudo apt-get install clang gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64

Building for Windows

Run scripts/windows/build_all.sh

Libraries will be output to scripts/windows/build

Building on Windows

build_all.ps1 is not confirmed working and may need work eg. may need some missing dependencies added but has been included as a starting point or example for Windows users