From 884fcbe1e0ce083ec1292b2ce6d46859a965c525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrienberaud@gmail.com> Date: Thu, 17 Dec 2015 11:22:47 -0500 Subject: [PATCH] Update README.md --- README.md | 46 +++++++++------------------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 5de7f94a..b19ee317 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ Documentation - See the wiki: <https://github.com/savoirfairelinux/opendht/wiki> +#### How-to build and install + +Build instructions : <https://github.com/savoirfairelinux/opendht/wiki/Build-the-library> + +#### How-to build a simple client app +```bash +g++ main.cpp -std=c++11 -lopendht -lgnutls +``` + Examples - ### C++ example @@ -76,43 +85,6 @@ for r in results: print(r) ``` -## How-to build and install - -Full instructions : <https://github.com/savoirfairelinux/opendht/wiki/Build-the-library> - -- -### Using autotools - -```bash -# clone the repo -git clone https://github.com/savoirfairelinux/opendht.git - -# build and install -cd opendht -./autogen.sh && ./configure -make -sudo make install -``` -### Using cmake - -```bash -# clone the repo -git clone https://github.com/savoirfairelinux/opendht.git - -# build and install -cd opendht -mkdir build && cd build -cmake -DOPENDHT_PYTHON=ON .. -make -j -sudo make install -``` - -How-to build a simple client app -- -```bash -g++ main.cpp -std=c++11 -lopendht -lgnutls -``` - Licence - Copyright (C) 2014-2015 Savoir-Faire Linux Inc. -- GitLab