Project

General

Profile

Actions

Compiling on Odroid

On the Odroid XU3 running Ubuntu 14.04 NDN, and NDF can be compiled directly on the hardware.

Install the essentials

sudo apt-get update
sudo apt-get install git vim
sudo apt-get install build-essential

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)

sudo apt-get remove libboost*
sudo apt-get autoremove

Temp build dir

mkdir /software

We need to download the latest version of the boost libraries from www.boost.org (currently at version 1.57)

cd /software
lynx http://sourceforge.net/projects/boost/files/boost/1.57.0/ 
download/save to current dir

unpack boost

tar xvfz boost_1_57_0.tar.gz

Install boost libraries

cd boost_1_xx_x
./bootstrap.sh  --with-libraries=all

This step will take a while, up to an hour.

Once the software is built we install it, the build process is comprised mostly of copying files (libraries) into the /usr/local structure

sudo ./b2 install

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

Once boost libs are installed we can install ndn-cxx

cd /software

git clone https://github.com/named-data/ndn-cxx.git
cd ndn-cxx
./waf configure
./waf -j1
sudo ./waf install

Once ndn-cxx is installed we can proceed to NDF

cd /software
git clone --recursive https://github.com/named-data/NFD
cd NFD
./waf configure
./waf -j1
sudo ./waf install

Note: do not configure NDF --with-tests, the compilation will fail.

Updated by Alex Afanasyev about 9 years ago ยท 2 revisions