Project

General

Profile

Compiling on Odroid » History » Version 2

Alex Afanasyev, 01/26/2015 11:53 PM

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
8 2 Alex Afanasyev
    sudo apt-get update
9
    sudo apt-get install git vim
10
    sudo apt-get install build-essential
11
12 1 Chaim Rieger
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)
13
14 2 Alex Afanasyev
    sudo apt-get remove libboost*
15
    sudo apt-get autoremove
16 1 Chaim Rieger
17 2 Alex Afanasyev
18 1 Chaim Rieger
Temp build dir 
19
20 2 Alex Afanasyev
    mkdir /software
21 1 Chaim Rieger
22 2 Alex Afanasyev
We need to download the latest version of the boost libraries from www.boost.org (currently at version 1.57)
23
24
    cd /software
25
    lynx http://sourceforge.net/projects/boost/files/boost/1.57.0/ 
26
    download/save to current dir
27
28 1 Chaim Rieger
unpack boost
29
30 2 Alex Afanasyev
    tar xvfz boost_1_57_0.tar.gz
31
32 1 Chaim Rieger
Install boost libraries
33
34 2 Alex Afanasyev
    cd boost_1_xx_x
35
    ./bootstrap.sh  --with-libraries=all
36
37 1 Chaim Rieger
This step will take a while, up to an hour. 
38
39
40
Once the software is built we install it, the build process is comprised mostly of copying files (libraries) into the /usr/local structure
41
42 2 Alex Afanasyev
    sudo ./b2 install
43
44 1 Chaim Rieger
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
45
46
47
Once boost libs are installed we can install ndn-cxx
48
49 2 Alex Afanasyev
    cd /software
50 1 Chaim Rieger
51 2 Alex Afanasyev
    git clone https://github.com/named-data/ndn-cxx.git
52
    cd ndn-cxx
53
    ./waf configure
54
    ./waf -j1
55
    sudo ./waf install
56 1 Chaim Rieger
57
58
Once ndn-cxx is installed we can proceed to NDF
59
60 2 Alex Afanasyev
    cd /software
61
    git clone --recursive https://github.com/named-data/NFD
62
    cd NFD
63
    ./waf configure
64
    ./waf -j1
65
    sudo ./waf install
66 1 Chaim Rieger
67 2 Alex Afanasyev
Note: do not configure NDF `--with-tests`, the compilation will fail.