When trying to compile widelands with compile.sh i get this error:
[ 24%] Building CXX object src/random/CMakeFiles/random.dir/random.cc.o
/home/kaputtnik/widelands-repo/trunk/src/random/random.cc: In function 'std::__cxx11::string generate_random_uuid()':
/home/kaputtnik/widelands-repo/trunk/src/random/random.cc:108:77: error: use of deleted function 'boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)'
static boost::uuids::random_generator gen = boost::uuids::random_generator();
^
In file included from /usr/include/boost/uuid/uuid_generators.hpp:17,
from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/uuid/random_generator.hpp:149:7: note: 'boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)' is implicitly deleted because the default definition would be ill-formed:
class random_generator_pure
^~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/uuid/random_generator.hpp:149:7: error: use of deleted function 'boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)'
In file included from /usr/include/boost/uuid/random_generator.hpp:20,
from /usr/include/boost/uuid/uuid_generators.hpp:17,
from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: note: 'boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)' is implicitly deleted because the default definition would be ill-formed:
class random_provider
^~~~~~~~~~~~~~~
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: error: use of deleted function 'boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)'
In file included from /usr/include/boost/uuid/detail/random_provider.hpp:14,
from /usr/include/boost/uuid/random_generator.hpp:20,
from /usr/include/boost/uuid/uuid_generators.hpp:17,
from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/core/noncopyable.hpp:34:7: note: declared here
noncopyable( const noncopyable& ) = delete;
^~~~~~~~~~~
make[2]: *** [src/random/CMakeFiles/random.dir/build.make:63: src/random/CMakeFiles/random.dir/random.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:28915: src/random/CMakeFiles/random.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Widelands revision: 8730
Boost version: 1.67.0
Gcc version: 8.1.1
This applies for release and debug builds.