build+docs: Build ndn-cxx as a shared library and update documentation to recommend that
Change-Id: I11606181387cd3f6da01e7067679279803d0f6c1
diff --git a/.jenkins.d/02-deps-ndn-cxx.sh b/.jenkins.d/02-deps-ndn-cxx.sh
index 1835a6c..6e81cca 100755
--- a/.jenkins.d/02-deps-ndn-cxx.sh
+++ b/.jenkins.d/02-deps-ndn-cxx.sh
@@ -47,6 +47,6 @@
EXTRA_FLAGS=" --boost-libs=/usr/lib/x86_64-linux-gnu"
fi
-./waf configure -j1 --color=yes --without-osx-keychain $EXTRA_FLAGS
+./waf configure -j1 --color=yes --enable-shared --disable-static --without-osx-keychain $EXTRA_FLAGS
./waf -j1 --color=yes
sudo ./waf install -j1 --color=yes
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