(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. (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
Optional: To install Boost with asio, install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install boost
Install Xcode. install MacPorts from http://www.macports.org/install.php . In a new terminal, enter:
sudo port install openssl
Optional: To install Protobuf, in a terminal, enter:
sudo port install protobuf-cpp
Optional: To install log4cxx, in a terminal, enter:
sudo port install log4cxx
Optional: To install Doxygen, in a terminal, enter:
sudo port install doxygen
Optional: To install Boost with asio, in a terminal, enter:
sudo port install boost
In a terminal, enter:
sudo apt-get install build-essential 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 install Boost with asio, in a terminal, enter:
sudo apt-get install libboost1.48-all-dev
In a terminal, enter:
sudo apt-get install build-essential 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 install Boost with asio, in a terminal, enter:
sudo apt-get install libboost-all-dev
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
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.)