This repository is a basic library aimed to provide a serials of wallet related interfaces.
Make sure your computer have installed the required packages below:
Download this repository using Git:
$ git clone [email protected]:elastos/Elastos.ELA.SPV.Cpp.git
For MacOS, you need to run command below to use toolchain of xcode
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
$ xcrun -find clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
And then, build
$ cd YOUR-PATH/Elastos.ELA.SPV.Cpp
$ cd Build
$ mkdir host && cd host
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=YOUR-INSTALL-PATH ../..
$ make -j NCPU && make install
-
Architecture (arm64)
$ cd YOUR-PATH/Elastos.ELA.SPV.Cpp $ cd Build $ mkdir iphoneos && cd iphoneos $ cmake -IOS_PLATFORM=iphoneos -DCMAKE_TOOLCHAIN_FILE=../../CMake/iOSToolchain.cmake -DCMAKE_INSTALL_PREFIX=YOUR-INSTALL-PATH ../.. $ make -j NCPU && make install
-
Simulator (x86_64)
$ cd YOUR-PATH/Elastos.ELA.SPV.Cpp $ cd Build $ mkdir iphonesimulator && cd iphonesimulator $ cmake -IOS_PLATFORM=iphonesimulator -DCMAKE_TOOLCHAIN_FILE=../../CMake/iOSToolchain.cmake -DCMAKE_INSTALL_PREFIX=YOUR-INSTALL-PATH ../.. $ make -j NCPU && make install
NDK
version: r16+
To generate the required Makefile in the current directory, please make sure to first replace 'YOUR-TARGET-ARCHITECTURE' and 'YOUR-ANDROID-NDK-HOME' with the correct option and path.
-DANDROID_ABI accepts the following target architecture options:
- armeabi-v7a
- arm64-v8a
- x86
- x86_64
$ cd YOUR-PATH/Elastos.ELA.SPV.Cpp
$ cd Build
$ mkdir android
$ cd android
$ cmake -DANDROID_ABI=YOUR-TARGET-ARCHITECTURE -DANDROID_NDK_HOME=YOUR-ANDROID-NDK-HOME -DCMAKE_TOOLCHAIN_FILE=../../CMake/AndroidToolchain.cmake -DCMAKE_INSTALL_PREFIX=YOUR-INSTALL-PATH ../..
$ make -j NCPU && make install
$ cd /Users/xxx/dev/Elastos.ELA.SPV.Cpp
$ ./doxygen.sh
The documents will generate in the doc/ directory
Patches are welcome. Please submit pull requests against the dev branch.
Learn more about this repository please refer to the following links: