diff --git a/README.md b/README.md index 5de7f94a95c98e183c0b07fb7fc1befd6085f668..b19ee3172ace1920b7c39193e71af6ddbf90d576 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.