/derogold

The DeroGold Association is the future of crypto today and we welcome you aboard.

Primary LanguageC++OtherNOASSERTION

DeroGold

Table of Contents
  1. Development Resources
  2. Introduction
  3. Installing
  4. Build Instructions
    1. Windows (x64 only)
      1. MSVC (Visual Studio 2022)
      2. MINGW64 (msys2)
      3. CLANG64 (msys2)
    2. Linux (x64/aarch64)
      1. GCC
      2. CLANG
    3. MacOS (x64 only)
      1. CLANG
  5. License
  6. Thanks

Development Resources

(back to top)

Introduction

DeroGold is a digital assets project focused on preserving our life environment here on Earth.

DeroGold aspires to solve problems such as circular economy in recycling, re-use of waste materials and how we can drive positive behaviour by rewarding people with digital assets for recycling. And build habitable floating islands.

For simplicity, we say we are the digital "Nectar Card for Recycling".

However, we are much more than that. We run our own privacy digital asset that allows people and organisations to send and receive our native digital coins called DEGO.

(back to top)

Installing

We offer binary images of the latest releases here: https://github.com/derogold/derogold/releases

If you would like to compile yourself, read on.

(back to top)

Build Instructions

The CMake build system will, by default, create optimized native builds for your particular system type when you build the software. Using this method, the binaries created provide a better experience and all together faster performance.

However, if you wish to create portable binaries that can be shared between systems, specify -DARCH=default in your CMake arguments during the build process. Note that portable binaries will have a noticeable difference in performance than native binaries. For this reason, it is always best to build for your particular system if possible.

Note that the instructions below create a portable binaries due to the preset setting -DARCH=default for compatibility reasons.

Windows (x64 only)

MSVC (Visual Studio 2022)

Prerequisites:

  • Visual Studio Community 2022
    • Note: This installs the full IDE which may take up more space. If you want a more lightweight installation, install Build Tools for Visual Studio 2022 instead.
    • In the installer, under Workloads tab, select Desktop development with C++
      • Ensure that under the optional component, the following is checked:
      • MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)
      • Windows 11 SDK (10.0.22621.0) - Pick the latest one if possible.
      • C++ CMake tools for Windows
  • Build Tools for Visual Studio 2022
    • Note: You are not required to install this if you have Visual Studio Community/Professional/Enterprise 2022 installed.
    • In the installer, under Workloads tab, select Desktop development with C++
      • Ensure that under the optional component, the following is checked:
        • MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)
        • Windows 11 SDK (10.0.22621.0) - Pick the latest one if possible.
        • C++ CMake tools for Windows
  • Git
    • Skip this if you have installed Git For Windows in the Visual Studio installer
    • If the development console could not find git, you can always install this to resolve the issue.
  • CMake
    • Skip this if you have installed C++ CMake tools for Windows in the Visual Studio installer
    • If the development console could not find cmake, you can always install this to resolve the issue.

Building:

  • From the start menu, open 'x64 Native Tools Command Prompt for VS 2022'
  • If you need to change the default drive C: to D: for example, just type D: and hit enter
  • Use cd to change to your desired directory to store DeroGold code
  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset windows-x64-msvc-publish
  • cmake --build --preset windows-x64-msvc-publish
  • Enjoy your build at build/bin

(back to top)

MINGW64 (msys2)

Prerequisites:

  • MSYS2
    • Open MSYS2 MINGW64
    • Run pacman -Syu twice (to ensure all packages are updated) The window will close the first time
    • Run pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-ccache git

Building:

  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset windows-x64-mingw-gcc-publish
  • cmake --build --preset windows-x64-mingw-gcc-publish
  • Enjoy your build at build/bin

(back to top)

CLANG64 (msys2)

Prerequisites:

  • MSYS2
    • Open MSYS2 CLANG64
    • Run pacman -Syu twice (to ensure all packages are updated) The window will close the first time
    • Run pacman -S mingw-w64-clang-x86_64-toolchain mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-ninja mingw-w64-clang-x86_64-ccache git

Building:

  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset windows-x64-mingw-clang-publish
  • cmake --build --preset windows-x64-mingw-clang-publish
  • Enjoy your build at build/bin

(back to top)

Linux (x64/aarch64)

GCC

Prerequisites:

  • For Ubuntu: sudo apt install git cmake ninja-build build-essential curl zip unzip tar pkg-config
  • (Optional) sudo apt install crossbuild-essential-arm64 for cross building aarch64 target

Building:

  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset linux-x64-gcc-publish
  • sudo cmake --build --preset linux-x64-gcc-publish
  • use sudo cmake --install build if install permission failed
  • Enjoy your build at /usr/local/bin

You can use --preset linux-arm64-gcc-cross-publish to cross compile for arm64/aarch64 raspberry pi. Output binaries would be stored at build/bin.

(back to top)

CLANG

Prerequisites:

  • For Ubuntu: sudo apt install git cmake ninja-build clang curl zip unzip tar pkg-config

Building:

  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset linux-x64-clang-publish
  • sudo cmake --build --preset linux-x64-clang-publish
  • use sudo cmake --install build if install permission failed
  • Enjoy your build at /usr/local/bin

(back to top)

MacOS (x64 only)

CLANG

Prerequisites:

  • HomeBrew
    • Install by running /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • brew install git cmake ninja llvm pkg-config

Building:

  • git clone --recursive https://github.com/derogold/derogold.git
  • cd derogold
  • cmake --preset osx-x64-clang-publish
  • sudo cmake --build --preset osx-x64-clang-publish
  • use sudo cmake --install build if install permission failed
  • Enjoy your build at /usr/local/bin

(back to top)

License

Read the LICENSE file for more details.

(back to top)

Thanks

Cryptonote Developers, Bytecoin Developers, Monero Developers, Forknote Project, TurtleCoin Developers

(back to top)