sudo apt update
sudo apt install git
sudo apt install build-essential gdb
sudo apt install cmake
sudo apt install catch2
sudo apt install qtbase5-dev qtcreator qt5-qmake qt5-doc
sudo apt install qt6-base-dev qtcreator
sudo apt-get install libcppunit-dev
sudo apt-get install pkg-config
# Install OpenDHT dependencies
sudo apt install libncurses5-dev libreadline-dev nettle-dev libgnutls28-dev libargon2-0-dev libmsgpack-dev libssl-dev libfmt-dev libjsoncpp-dev libhttp-parser-dev libasio-dev
wget https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.tar.bz2
tar --bzip2 -xf boost_1_85_0.tar.bz2
cd boost_1_85_0
./bootstrap.sh
sudo ./b2 install
# clone the repo
git clone https://github.com/savoirfairelinux/opendht.git
# build and install
cd opendht
mkdir build && cd build
cmake -DOPENDHT_PYTHON=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install
git clone https://github.com/c5xheavy/p2p_messenger.git
mkdir build && cd build
cmake ..
cmake --build .