Jeff Thompson | 9b282e0 | 2013-08-09 17:13:38 -0700 | [diff] [blame] | 1 | NDN-CPP: A Named Data Networking client library for C++ and C |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 2 | ------------------------------------------------------------- |
| 3 | |
| 4 | Prerequisites |
| 5 | ------------- |
| 6 | |
Jeff Thompson | c2da8c7 | 2013-10-10 16:30:25 -0700 | [diff] [blame^] | 7 | Required: libcrypto |
| 8 | Optional: libsqlite3 (for key storage) |
| 9 | Optional: OSX Security framework (for key storage) |
| 10 | |
| 11 | Following are the detailed steps for each platform to install the prerequisites. |
| 12 | |
| 13 | * Ubuntu 12.04 |
| 14 | sudo apt-get install build-essential |
| 15 | sudo apt-get install libssl-dev |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 16 | |
| 17 | Build |
| 18 | ----- |
| 19 | |
| 20 | To build in a terminal, change directory to the ndn-cpp root. Enter: |
| 21 | |
| 22 | ./configure |
| 23 | make |
Jeff Thompson | c2da8c7 | 2013-10-10 16:30:25 -0700 | [diff] [blame^] | 24 | make install |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 25 | |
Jeff Thompson | 2f951cf | 2013-08-11 16:04:09 -0700 | [diff] [blame] | 26 | To make documentation, enter: |
| 27 | make doxygen-doc |
| 28 | |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 29 | Files |
| 30 | ----- |
| 31 | |
| 32 | This makes the following libraries: |
| 33 | |
| 34 | .libs/libndn-c.a: The core C code for encoding and communication. |
Jeff Thompson | c2da8c7 | 2013-10-10 16:30:25 -0700 | [diff] [blame^] | 35 | .libs/libndn-cpp.a: The C++ library API. (If linking to libndn-cpp, don't link to libndn-c since it is included.) |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 36 | |
| 37 | This makes the following test files: |
| 38 | |
| 39 | bin/test-get-async: Connect to one of the NDN testbed hubs, express an interest and display the received data. |
| 40 | bin/test-encode-decode-interest: Encode and decode an interest, testing interest selectors and the name URI. |
| 41 | bin/test-encode-decode-data: Encode and decode a data packet, including signing the data packet. |
Jeff Thompson | c2da8c7 | 2013-10-10 16:30:25 -0700 | [diff] [blame^] | 42 | bin/test-encode-decode-forwarding-entry: Encode and decode a data packet, including signing the data packet. |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 43 | |
Jeff Thompson | 2f951cf | 2013-08-11 16:04:09 -0700 | [diff] [blame] | 44 | Running make doxygen-doc puts code documentation in: |
| 45 | doc/html |
| 46 | |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 47 | Supported platforms |
| 48 | ------------------- |
| 49 | |
Jeff Thompson | 9b282e0 | 2013-08-09 17:13:38 -0700 | [diff] [blame] | 50 | NDN-CPP is tested on the following platforms: |
Jeff Thompson | 057d318 | 2013-08-09 17:02:25 -0700 | [diff] [blame] | 51 | Ubuntu 12.04 (gcc 4.6.3) |
| 52 | Mac OS X 10.8.4 (clang 4.2) |
| 53 | Mac OS X 10.8.4 (gcc 4.2) |
| 54 | |
| 55 | |