Alexander Afanasyev | 08eecea | 2014-03-28 10:23:30 -0700 | [diff] [blame] | 1 | NFD: NDN Forwarding Daemon |
| 2 | ========================== |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 3 | |
Junxiao Shi | 336e4f7 | 2014-01-22 19:38:31 -0700 | [diff] [blame] | 4 | ## Prerequisites |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 5 | |
Alexander Afanasyev | 08eecea | 2014-03-28 10:23:30 -0700 | [diff] [blame] | 6 | * [ndn-cpp-dev library](https://github.com/named-data/ndn-cpp-dev) and |
| 7 | its requirements: |
| 8 | |
| 9 | * `libcrypto` |
| 10 | * `libsqlite3` |
| 11 | * `libcrypto++` |
| 12 | * `pkg-config` |
| 13 | * Boost libraries (>= 1.48) |
| 14 | * OSX Security framework (on OSX platform only) |
| 15 | |
| 16 | Refer to https://github.com/named-data/ndn-cpp-dev/blob/master/INSTALL.md |
| 17 | for detailed installation instructions. |
| 18 | |
| 19 | * `libpcap` |
| 20 | |
| 21 | Comes with base on Mac OS X 10.8 and 10.9: |
| 22 | |
| 23 | On Ubuntu >= 12.04: |
| 24 | |
| 25 | sudo apt-get install libpcap-dev |
| 26 | |
| 27 | To build API documentation: |
| 28 | |
| 29 | * `doxygen` |
| 30 | |
| 31 | On Mac OS X 10.8 and 10.9 with macports: |
| 32 | |
| 33 | sudo port install doxygen |
| 34 | |
| 35 | On Ubuntu >= 12.04: |
| 36 | |
| 37 | sudo apt-get install doxygen |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 38 | |
Junxiao Shi | 336e4f7 | 2014-01-22 19:38:31 -0700 | [diff] [blame] | 39 | ## Build |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 40 | |
| 41 | The following commands should be used to build NFD: |
| 42 | |
| 43 | ./waf configure |
| 44 | ./waf |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 45 | sudo ./waf install |
| 46 | |
Alexander Afanasyev | 08eecea | 2014-03-28 10:23:30 -0700 | [diff] [blame] | 47 | Refer to `README.md` file for more options that can be used during `configure` stage and how to properly configure and run NFD. |
Alexander Afanasyev | 2aa3962 | 2014-01-22 11:51:11 -0800 | [diff] [blame] | 48 | |
Alexander Afanasyev | 08eecea | 2014-03-28 10:23:30 -0700 | [diff] [blame] | 49 | In some configurations, configuration step may require small modification: |
| 50 | |
| 51 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig |
| 52 | ./waf configure |
| 53 | ./waf |
| 54 | sudo ./waf install |