From 773fc518299fc420d22012803e6098c6372d0568 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 16 Nov 2022 12:56:48 -0500 Subject: [PATCH] update to monero-project v0.18.1.2 update instructions to install unbound --- README.md | 30 +++++++++++++++++++----------- external/monero-project | 2 +- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 208719f..e2994b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Monero C++ Library -A C++ library for creating Monero applications using native bindings to [monero v0.18.1.0 'Flourine Fermie'](https://github.com/monero-project/monero/tree/v0.18.1.0). +A C++ library for creating Monero applications using native bindings to [monero v0.18.1.2 'Flourine Fermie'](https://github.com/monero-project/monero/tree/v0.18.1.2). * Supports fully client-side wallets by wrapping [wallet2.h](https://github.com/monero-project/monero/blob/master/src/wallet/wallet2.h). * Supports multisig, view-only, and offline wallets. @@ -169,33 +169,41 @@ For example, [monero-java](https://github.com/monero-ecosystem/monero-java) comp 1. If building this library standalone instead of as a submodule in another project, clone the project repository and update its submodules: 1. `git clone --recurse-submodules https://github.com/monero-ecosystem/monero-cpp.git` 2. `cd ./monero-cpp && ./bin/update_submodules.sh` -2. `export MONERO_CPP=path/to/monero-cpp` -3. `cd $MONERO_CPP/external/monero-project` -4. Install [monero-project dependencies](https://github.com/monero-project/monero#dependencies) for your system. For example, on Ubuntu:
+2. Install [monero-project dependencies](https://github.com/monero-project/monero#dependencies) for your system. For example, on Ubuntu:
1. `sudo apt update && sudo apt install build-essential cmake pkg-config libssl-dev libzmq3-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libpgm-dev qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev libprotobuf-dev protobuf-compiler libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache` 2. Install expat (dependency of unbound): ``` + cd ~ wget https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.bz2 tar -xf expat-2.4.8.tar.bz2 rm expat-2.4.8.tar.bz2 cd expat-2.4.8 ./configure --enable-static --disable-shared make - make install + sudo make install cd ../ ``` 3. Install unbound: - + ``` - wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.16.1.tar.gz - tar -xzf unbound-1.16.1.tar.gz - rm unbound-1.16.1.tar.gz - cd unbound-1.16.1 - ./configure --disable-shared --enable-static --without-pyunbound --with-libevent=no --without-pythonmodule --disable-flto --with-pthreads --with-libunbound-only --with-pic + cd ~ + wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.17.0.tar.gz + tar xzf unbound-1.17.0.tar.gz + sudo apt update + sudo apt install -y build-essential + sudo apt install -y libssl-dev + sudo apt install -y libexpat1-dev + sudo apt-get install -y bison + sudo apt-get install -y flex + cd unbound-1.17.0 + ./configure --with-libexpat=/usr --with-ssl=/usr make + sudo make install cd ../ ``` +3. `export MONERO_CPP=path/to/monero-cpp` +4. `cd $MONERO_CPP/external/monero-project` 5. Build monero-project to create .a libraries, e.g.: `make release-static -j8` 6. Link to this library's source files in your application or build as a shared library in ./build/: `cd $MONERO_CPP && ./bin/build_libmonero_cpp.sh` diff --git a/external/monero-project b/external/monero-project index 727bc5b..991af41 160000 --- a/external/monero-project +++ b/external/monero-project @@ -1 +1 @@ -Subproject commit 727bc5b6878170332bf2d838f2c60d1c8dc685c8 +Subproject commit 991af41ba3015419405c6c70e0e93cc25ac5aadd