This document provides instructions on how to build DHTNet from source code. Ensure that you have met all the dependencies before proceeding with the build.
Follow these instructions to install DHTNet dependencies depending on your system:
sudo apt install libncurses5-dev libreadline-dev nettle-dev libgnutls28-dev libargon2-dev libmsgpack-dev libssl-dev libfmt-dev libjsoncpp-dev libhttp-parser-dev libasio-dev libyaml-cpp-dev libunistring-dev libcppunit-dev
sudo dnf install readline-devel gnutls-devel msgpack-devel asio-devel libargon2-devel fmt-devel http-parser-devel cppunit-devel jsoncpp-devel
brew install gnutls msgpack-cxx argon2 asio
Follow these steps to build DHTNet:
Clone the DHTNet repository to your local machine:
git clone https://github.com/savoirfairelinux/dhtnet.git cd dhtnet
Ensure that you have the latest versions of the required Git submodules, pjproject, and OpenDHT. Run the following command:
git submodule update --init --recursive
This step ensures that your project has the most up-to-date dependencies for the build process.
Create a build directory and use CMake to configure the build:
mkdir build cd build cmake ..
Finally, initiate the build process:
make
sudo make install
If you encounter issues or wish to contribute to DHTNet's development, please visit the GitHub repository for more details on how to get involved.