Compiling on Odroid » History » Version 1
Chaim Rieger, 01/12/2015 02:49 PM
Initial Draft
1 | 1 | Chaim Rieger | Compiling on Odroid |
---|---|---|---|
2 | =================== |
||
3 | |||
4 | On the Odroid XU3 running Ubuntu 14.04 NDN, and NDF can be compiled directly on the hardware. |
||
5 | |||
6 | Install the essentials |
||
7 | sudo apt-get update |
||
8 | sudo apt-get install git vim |
||
9 | sudo apt-get install build-essential |
||
10 | |||
11 | The installed version of the boost-libs will not allow ndn-cxx to be compiled against them, therefore we must uninstall them. (And are not used by any currently installed software) |
||
12 | sudo apt-get remove libboost* |
||
13 | sudo apt-get autoremove |
||
14 | |||
15 | |||
16 | Temp build dir |
||
17 | mkdir /software |
||
18 | |||
19 | We need to download the latest version of the boost libraries from www.boost.org (currently at version 1.57 |
||
20 | cd /software |
||
21 | lynx http://sourceforge.net/projects/boost/files/boost/1.57.0/ |
||
22 | download/save to current dir |
||
23 | |||
24 | unpack boost |
||
25 | tar xvfz boost_1_57_0.tar.gz |
||
26 | |||
27 | Install boost libraries |
||
28 | cd boost_1_xx_x |
||
29 | ./bootstrap.sh --with-libraries=all |
||
30 | |||
31 | This step will take a while, up to an hour. |
||
32 | |||
33 | |||
34 | Once the software is built we install it, the build process is comprised mostly of copying files (libraries) into the /usr/local structure |
||
35 | sudo ./b2 install |
||
36 | |||
37 | This step will only take about 3-5 minutes, and all the libraries, and includes are copied to /usr/local/lib and /usr/local/include |
||
38 | |||
39 | |||
40 | Once boost libs are installed we can install ndn-cxx |
||
41 | |||
42 | cd /software |
||
43 | |||
44 | git clone https://github.com/named-data/ndn-cxx.git |
||
45 | cd ndn-cxx |
||
46 | ./waf configure |
||
47 | ./waf -j1 |
||
48 | sudo ./waf install |
||
49 | |||
50 | |||
51 | Once ndn-cxx is installed we can proceed to NDF |
||
52 | |||
53 | cd /software |
||
54 | git clone --recursive https://github.com/named-data/NFD |
||
55 | cd NDF |
||
56 | ./waf configure |
||
57 | ./waf -j1 |
||
58 | sudo ./waf install |
||
59 | |||
60 | Note: do not configure NDF --with-tests, the compilation will fail. |