Adon Coin blockchain
sudo apt update && apt install -y software-properties-common build-essential wget file git libssl-dev
cd /tmp
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz > /dev/null
tar xzvf cmake-3.16.2.tar.gz
cd cmake-3.16.2 && ./bootstrap
make -j$(proc)
sudo make install
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install g++-7 -y
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-7 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-7 \
--slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-7 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-7
For 64-bit:
sudo apt install -y libboost-all-dev
cd ~
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
cmake -S . -Bbuild -DSTATIC=ON
cmake --build build -j$(nproc)
You can find binaries under build/src folder.
For 32-bit:
Install additional software required to compile 32 bit;
apt install -y gcc-7-multilib g++-7-multilib libc6-dev-i386
You need to compile boost libraries from source code.
cd /tmp
wget https://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz
tar xzvf boost_1_65_1.tar.gz
cd boost_1_65_1
export BOOST_ROOT=$HOME/local/boost_1_65_1/x86
./bootstrap.sh
./b2 -j8 \
cxxflags="-m32" linkflags="-m32" \
link=static address-model=32 architecture=x86 threading=multi \
--reconfigure --prefix=$BOOST_ROOT install --build-type=complete --layout=tagged \
--with-atomic --with-chrono --with-date_time --with-filesystem --with-program_options \
--with-regex --with-serialization --with-system --with-thread --with-context --with-coroutine > /dev/null
cd ~
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
cmake -S . -Bbuild -DSTATIC=ON -DCMAKE_TOOLCHAIN_FILE=./extras/toolchain/cross-linux-x86.cmake
cmake --build build -j$(nproc)
This part of the document will be updated soon
This part of the document will be updated soon
This part of the document will be updated soon
For 64-bit:
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 .. -DBOOST_ROOT=C:/local/boost_1_69_0
MSBuild Adon.sln /p:Configuration=Release /m
For 32-bit:
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A Win32 .. -DBOOST_ROOT=C:/local/boost_1_69_0
MSBuild Adon.sln /p:Configuration=Release /p:Platform=Win32 /m
The binaries will be in the src/Release
folder when you are complete.
cd src
cd Release
adon-daemon.exe --version
For 64-bit:
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" .. -DBOOST_ROOT=C:/local/boost_1_69_0
MSBuild Adon.sln /p:Configuration=Release /m
For 32-bit:
git clone -b master --single-branch https://github.com/adon-net/adon-core
cd adon-core
mkdir build
cd build
cmake -G "Visual Studio 15 2017" .. -DBOOST_ROOT=C:/local/boost_1_69_0
MSBuild Adon.sln /p:Configuration=Release /p:Platform=Win32 /m
The binaries will be in the src/Release
folder when you are complete.
cd src
cd Release
adon-daemon.exe --version