You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
moneroexamples e2a7d89590
first commit
6 years ago
cmake first commit 6 years ago
ext first commit 6 years ago
src first commit 6 years ago
tests first commit 6 years ago
.gitignore first commit 6 years ago
.gitmodules first commit 6 years ago
CMakeLists.txt first commit 6 years ago
LICENSE first commit 6 years ago
README.md first commit 6 years ago
main.cpp first commit 6 years ago

README.md

Set of c++ code that is used commonly among moneroexamples repositories

This repository include code that is oftenly used among moneroexamples projects. It includes:

  • classess for decoding outputs/inputs, payment ids
  • general utility tools (e.g., get default monero blockchain path)
  • more to come ...

C++14

C++14 is required to run this code.

Example compilation on Ubuntu 18.04

Monero download and compilation

Download and compile recent Monero into your home folder:

# first install monero dependecines
sudo apt update

sudo apt install git build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libcurl4-openssl-dev libgtest-dev libreadline-dev libzmq3-dev libsodium-dev libhidapi-dev libhidapi-libusb0

# go to home folder
cd ~

git clone --recursive https://github.com/monero-project/monero

cd monero/

USE_SINGLE_BUILDDIR=1 make

Compilation of the xmregcore


# go to home folder if still in ~/monero
cd ~

git clone --recursive-submodule https://github.com/moneroexamples/xmregcore.git

cd xmregcore

mkdir build && cd build

cmake ..

# altearnatively can use cmake -DMONERO_DIR=/path/to/monero_folder ..
# if monero is not in ~/monero

make

# run tests
make test

Other examples

Other examples can be found on github. Please know that some of the examples/repositories are not finished and may not work as intended.

How can you help?

Constructive criticism, code and website edits are always good. They can be made through github.