General dependencies
The MyMonero libapp build requires you to have installed docker. Docker should be in your system's evironment path.
Building libapp
- Clone the repo
git clone https://github.com/mymonero/mymonero-libapp-js.git
cd mymonero-libapp-js
- Run
bin/update_submodules
- Download Boost libraries
curl -LO https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
orwget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
- For Mac, you can verify the integrity of the archive by runningshasum -a 256 boost_1_69_0.tar.gz
. You should see the following hash:9a2c2819310839ea373f42d69e733c339b4e9a19deab6bfec448281554aa4dbb
mkdir -p contrib/boost-sdk
tar zxf boost_1_69_0.tar.gz -C contrib/boost-sdk --strip-components=1
rm -rf build && mkdir build
rm libapp_js/MyMoneroLibAppCpp_*
Build boost emscripten
docker run -it -v $(pwd):/app quay.io/exodusmovement/emscripten:1.38.48 ./bin/build-boost-emscripten.sh
Build MyMonero emscripten
docker run -it -v $(pwd):/app quay.io/exodusmovement/emscripten:1.38.48 ./bin/archive-emcpp.sh
- If you get '#error Including <emscripten/bind.h> requires building with -std=c++11 or newer!' error, re-run step 10.
By following these instructions, new WASM and ASM libraries are generated and copied to the libapp_js folder