Docker container

For those on debian/ubuntu here is a quick script/set of commands to get a build environment locally to. It’s pretty much all in the wiki, but this will get you a clang++ enabled build env quickly. This may help for the impatient (like me). If you issue these commands in this order then you are set.

git clone GitHub - maidsafe-archive/MaidSafe: This is the super-project in which each MaidSafe library resides. Some information is common to all libraries, and is detailed here. Library-specific information can be found in each library's wiki.
cd MaidSafe
git submodule update --init
git checkout next
git submodule foreach 'git checkout next ’
sudo apt-add-repository ppa:andykimpe/cmake
sudo apt-add-repository ppa:ubuntu-toolchain-r/ppa
sudo sh -c “echo deb Index of /precise/ llvm-toolchain-precise-3.4 main > /etc/apt/sources.list.d/clang.list”
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get update
sudo apt-get install build-essential python-psutil libfuse-dev git-all libicu-dev valgrind binutils-gold cmake clang-3.4
git submodule update --init
mkdir build
cd build
CXX=clang+±3.4 CC=clang-3.4 cmake …/
make

3 Likes