Make local_network_controller fails when trying to include clock.h

Can I please get help with this.

I am working through the instructions here:
http://maidsafe.net/maidsafe-examples/en/001_network_setup/local_network_setup.html

I am working on an Ubuntu live cd setup with Ubuntu version 14.04 LTS. On a 64 bit system.

Here is the problem I am getting:

ubuntu@ubuntu:~/build_maidsafe$ make local_network_controller
[ 2%] Built target protobuf_lite
[ 6%] Built target protobuf
[ 10%] Built target proto_compiler
[ 10%] Built target protoc
[ 10%] Generated all vault protocol buffer files.
[ 16%] Built target vault_protobuf_files_generator
[ 34%] Built target cryptopp
[ 34%] Built target boost_system
[ 36%] Built target boost_chrono
[ 38%] Built target boost_date_time
[ 38%] Built target boost_filesystem
[ 40%] Built target boost_locale
[ 40%] Built target boost_program_options
[ 40%] Built target boost_regex
[ 42%] Built target boost_thread
[ 42%] Built target sqlite
[ 44%] Built target boost_process
[ 44%] Built target maidsafe_passport
[ 50%] Built target maidsafe_common
[ 52%] Built target maidsafe_rudp
[ 52%] Built target maidsafe_network_viewer
[ 54%] Building CXX object src/routing/CMakeFiles/maidsafe_routing.dir/src/maidsafe/routing/utils.cc.o
In file included from /home/ubuntu/MaidSafe/src/routing/src/maidsafe/routing/network_utils.h:23:0,
from /home/ubuntu/MaidSafe/src/routing/src/maidsafe/routing/message_handler.h:32,
from /home/ubuntu/MaidSafe/src/routing/src/maidsafe/routing/utils.cc:38:
/home/ubuntu/MaidSafe/src/routing/src/maidsafe/routing/firewall.h:28:35: fatal error: maidsafe/common/clock.h: No such file or directory
#include “maidsafe/common/clock.h”
^
compilation terminated.
make[3]: *** [src/routing/CMakeFiles/maidsafe_routing.dir/src/maidsafe/routing/utils.cc.o] Error 1
make[2]: *** [src/routing/CMakeFiles/maidsafe_routing.dir/all] Error 2
make[1]: *** [src/vault_manager/CMakeFiles/local_network_controller.dir/rule] Error 2
make: *** [local_network_controller] Error 2

Thanks for the help.

Can you please check the branch you are on for all libs is ‘next’ this is our running test branch and you can see it passes all CI tests on the dashboard dash.maidsafe.net

yepp you may need to go to each individual library and do:

git checkout next

after updating submodules and before building.

yepp you may need to go to each individual library and do:

git checkout next

after updating submodules and before building

Correct, but you can do as follows in your source directory:

cd ~/MaidSafe
git submodule foreach “git checkout next; git pull”
git checkout next; git pull
cd ~/build_maidsafe
cmake …/MaidSafe
make

1 Like

Thanks for the replies they were helpful.

I fixed this by changing directory into the specific folder listed and then doing git branch and in each case it was on another branch. Then I did git checkout next. I did this each time one of these came up and it got me to:
100% Built target local_network_controller

2 Likes

So what I did built 100% but then when I went to run it there were errors:

I did this before I saw:

Their suggestion caught many parts that I had missed switching to next.