Install the ndn-cxx library and its prerequisites.
Optionally, to build man pages and API documentation the following additional dependencies need to be installed:
- doxygen
- graphviz
- sphinx
- sphinxcontrib-doxylink
The following commands should be used to build NDNS on Ubuntu:
./waf configure
./waf
sudo ./waf installRefer to ./waf --help for more options that can be used during the configure stage.
The default compiler flags include debug symbols in binaries. This should provide more meaningful debugging information if NDNS or other tools happen to crash.
If this is not desired, the default flags can be overridden to disable debug symbols.
The following example shows how to completely disable debug symbols and configure
NDNS to be installed into /usr with configuration in the /etc directory.
CXXFLAGS="-O2" ./waf configure --prefix=/usr --sysconfdir=/etc
./waf
sudo ./waf installTutorials and API documentation can be built using the following commands:
# Full set of documentation (tutorials + API) in build/docs
./waf docs
# Only tutorials in build/docs
./waf sphinx
# Only API docs in build/docs/doxygen
./waf doxygenIf sphinx-build is detected during ./waf configure, man pages will automatically
be built and installed during the normal build process (i.e., during ./waf and
./waf install). By default, man pages will be installed into ${PREFIX}/share/man
(the default value for PREFIX is /usr/local). This location can be changed
during the ./waf configure stage using the --prefix, --datarootdir, or
--mandir options.
For further details, please refer to ./waf --help.