(These are prerequisites to build NDN-CPP. To do development of NDN-CPP code and update the build system, see Development Prerequisites.)
Following are the detailed steps for each platform to install the prerequisites.
Install Xcode. In Xcode Preferences > Downloads, install "Command Line Tools".
Optional: To install Protobuf, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install protobuf-cpp
Optional: To install log4cxx, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install log4cxx
Optional: To install Doxygen, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install doxygen
Install Xcode. (Xcode seems to already have the Command Line Tools.)
Optional: To install Protobuf, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install protobuf-cpp
Optional: To install log4cxx, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install log4cxx
Optional: To install Doxygen, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install doxygen
In a terminal, enter:
sudo apt-get install build-essential sudo apt-get install libssl-dev
Optional: To install libsqlite3, in a terminal, enter:
sudo apt-get install libsqlite3-dev
Optional: To install Protobuf, in a terminal, enter:
sudo apt-get install libprotobuf-dev
Optional: To install log4cxx, in a terminal, enter:
sudo apt-get install liblog4cxx10-dev
Optional: To install Doxygen, in a terminal, enter:
sudo apt-get install doxygen
Optional: To use boost, you may need to manually install it since apt-get doesn't seem to install the library files.
Cygwin is tested on Windows 7 64-bit.
In the Cygwin installer, select and install the "Devel" packages at the top level of the installer. (The "Devel" packages include libcrypto and libsqlite3.)
(These are instructions to build NDN-CPP. To do development of NDN-CPP code and update the build system, see Development.)
To build in a terminal, change directory to the NDN-CPP root. Enter:
./configure make sudo make install
NDN-CPP uses NDN-TLV as the default wire format: http://named-data.net/doc/ndn-tlv/tlv.html . To revert to Binary XML (ndnb) as the default wire format, instead of ./configure, use:
./configure --enable-binary-xml=yes
To run the unit tests, in a terminal enter:
make check
To make documentation, in a terminal enter:
make doxygen-doc
The documentation output is in doc/html/index.html. (If you already did ./configure before installing Doxygen, you need to do ./configure again before make doxygen-doc.)
This makes the following libraries:
This makes the following example programs:
Running make doxygen-doc puts code documentation in doc/html.
These steps are only needed to do development of NDN-CPP code and update the build system. First follow the Prerequisites above for your platforms.
Install MacPorts from http://www.macports.org/install.php . In a terminal, enter:
sudo port install automake autoconf libtool doxygen
In a terminal, enter:
sudo apt-get install automake libtool doxygen
Follow Development Prerequisites above for your platform. Now you can add source code files and update Makefile.am. After updating, change directory to the NDN-CPP root and enter the following to build the Makefile:
./autogen.sh
To build again, follow the instructions above (./configure, make, etc.)
1.8.9.1