Posting here temprorarily so someone can add to the Wiki (or enable theWebalyst for that on github and I’ll do it).
If this is put into the Wiki, this FAQ can be altered to "How do I build the MaidSafe software? with a pointer to [MaidSafe Build Instructions for all machines][1].
How To Build MaidSafe on Odroid-U3
These instructions assume Ubuntu 14.04 LTS (the official Odroid-U3 Linux image as of July 2014).
This was a breeze thanks to @Ross and Ubuntu 14.04!
See also MaidSafe Build Instructions: https://github.com/maidsafe/MaidSafe/wiki/Build-Instructions-for-Linux
Prepare Build Environment
sudo apt-get update
sudo apt-get install clang-3.5 cmake
sudo apt-get install build-essential python-psutil libfuse-dev git-all libicu-dev valgrind binutils-gold
Set-up Github Access
Create SSH keys for github. Follow the instructions here: Ref: https://help.github.com/articles/generating-ssh-keys
Then…
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
log into http://github.com
At github.com > Account Settings > SSH Keys
Set a label e.g. odroid-duey
Paste in the key
Click Add
Test on client:
ssh -T git@github.com
Grab The Code
From here on I give timings for some commands. All are based on Odroid-U3 with 64GB eMMC.
The following command takes ~10 minutes:
git clone git@github.com:maidsafe/MaidSafe
The following command takes ~10 minutes:
git -C MaidSafe submodule update --init
Create Build Makefile
The following command takes ~15 minutes including full boost libraries download.
Note: 5 mins in it needs your SSH key password:
cmake -H<path to MaidSafe root> -Bbuild_maidsafe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
Build MaidSafe
The following command takes about 2hrs:
cd build_maidsafe
make
Try Running The Tests
To run tests on a module, and automatically submit them to the Public Dashboard
make Exper
Try:
make ExperCommon
Wooo hoo, “duey” appears in dashboard with all tests passed.
[1]: Home · maidsafe-archive/MaidSafe Wiki · GitHub