项目作者: adon-net

项目描述 :
Adon Coin blockchain
高级语言: C++
项目地址: git://github.com/adon-net/adon-core.git
创建时间: 2019-05-17T09:28:31Z
项目社区:https://github.com/adon-net/adon-core

开源协议:

下载


BRANCH : MASTER

nix 64-bit
win 64-bit

GitHub last commit (branch)
GitHub commits since latest release (branch)

BRANCH : DEVELOP

nix 64-bit
win 64-bit

GitHub last commit (branch)
GitHub commits since latest release (branch)

RELEASE

GitHub Release Date
GitHub release (latest by date)
GitHub All Releases

GitHub code size in bytes
GitHub repo size

GitHub language count

Building Adon Coin

ON LINUX:

UBUNTU

  • sudo apt update && apt install -y software-properties-common build-essential wget file git libssl-dev

Install latest CMake

  • 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

Install gcc-7 & g++-7

  • 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

Compile Adon Coin

  • 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

Compile Adon Coin

  • 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)
  • You can find binaries under build/src folder.

RASPBERRY PI

CROSS COMPILE FOR PI 0 & 1

This part of the document will be updated soon

CROSS COMPILE FOR PI 2 & 3

This part of the document will be updated soon

CROSS COMPILE FOR PI 3+

This part of the document will be updated soon

ON WINDOWS:

PREREQUISITES

WITH VISUAL STUDIO 2019

For 64-bit:

  • From the start menu, open ‘x64 Native Tools Command Prompt for VS 2019’.
  • 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:

  • From the start menu, open ‘x86 Native Tools Command Prompt for VS 2019’.
  • 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

WITH VISUAL STUDIO 2017

For 64-bit:

  • From the start menu, open ‘x64 Native Tools Command Prompt for VS 2017’.
  • 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:

  • From the start menu, open ‘x86 Native Tools Command Prompt for VS 2017’.
  • 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