build+docs: Build ndn-cxx as a shared library and update documentation to recommend that
Change-Id: I11606181387cd3f6da01e7067679279803d0f6c1
diff --git a/docs/source/getting-started.rst b/docs/source/getting-started.rst
index 369be3f..61195d0 100644
--- a/docs/source/getting-started.rst
+++ b/docs/source/getting-started.rst
@@ -29,6 +29,14 @@
Make sure that all other version of boost libraries (``-dev`` packages) are removed,
otherwise compilation will fail.
+.. note::
+ For ndnSIM properly work, ndn-cxx library must be build as a shared library. For example::
+
+ # download ndn-cxx
+ ./waf configure --enable-shared --disable-static
+ ./waf build
+ sudo ./waf install
+
.. _requirements:
Prerequisites
@@ -132,7 +140,7 @@
.. code-block:: bash
cd ndnSIM/ndn-cxx
- ./waf configure
+ ./waf configure --enable-shared --disable-static
./waf
sudo ./waf install