I am basically getting the files from GitHub
git clone git@github.com:maidsafe/MaidSafe
git -C MaidSafe submodule update --init
and then per instructions doing the cmake and then the make.
But I have some errors. I may not have the proper boost library but there are no instructions on that.
Also when doing the cmake, it did not find all dependencies for qt5.
Here is one of the errors:
/root/MaidSafe/src/crux/include/maidsafe/crux/socket.hpp:430:62: required from ‘typename boost::asio::async_result<typename boost::asio::handler_type<ConnectHandler, void(boost::system::error_code)>::type>::type maidsafe::crux::socket::async_connect(const string&, const string&, CompletionToken&&) [with CompletionToken = const boost::asio::use_future_t<>&; typename boost::asio::async_result<typename boost::asio::handler_type<ConnectHandler, void(boost::system::error_code)>::type>::type = std::future<void>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/root/MaidSafe/src/crux/example/future/echo_client.cpp:28:79: required from here
/usr/include/c++/5/bits/alloc_traits.h:530:4: error: ‘using allocator_type = class std::allocator<void> {aka class std::allocator<void>}’ has no member named ‘construct’
{ __a.construct(__p, std::forward<_Args>(__args)...); }
I’ve kept a personal superproject of all our backend repos in case that’s where your interest lies. I’ve found the superproject is an easy way to get all the code onto a new machine (and I used to do that frequently enough to make it worthwhile) and to update all repos locally - but it’s not required for building any or all of our repos like it was with the old C++ codebase.
I get
info: component ‘rust-std’ for target ‘i686-unknown-linux-gnu’ is up to date
fatal: destination path ‘MaidSafe-Rust’ already exists and is not an empty directory.
error: could not find Cargo.toml in /root/MaidSafe-Rust or any parent directory
Those cross-compiling instructions were really just notes to remind me how I set up various environments. It should be pretty straightforward to build the vault code on Linux:
git clone https://github.com/maidsafe/safe_vault.git
cd safe_vault
cargo build --release
To run the tests:
cargo test --release
For actually running a vault, see this thread. There are some options which need tweaked via config files.