Re: Make errors in installation

Posted by Claudio on
URL: http://granoo.326.s1.nabble.com/Make-errors-in-installation-tp571p672.html

Hi,

I have the same problem when compiling in Debian 11 - which is actually in a WSL on Windows 11.
Anyone found a workaround?

I might point out that I was getting warnings concerning some files of VTK6 which were not found, and  had to copy them manually in /usr/bin. But I don't think that's related.

Here is my output:

[ 13%] Building CXX object Lib/CMakeFiles/GranOO.dir/GranOO/libDEM/ContactDetection.cpp.o
In file included from /home/user/granoo/tags/2.0/Lib/GranOO/libShape/Volume.hpp:42,
                 from /home/user/granoo/tags/2.0/Lib/GranOO/libShape/Sphere.hpp:40,
                 from /home/user/granoo/tags/2.0/Lib/GranOO/libDEM/DiscreteElement.hpp:37,
                 from /home/user/granoo/tags/2.0/Lib/GranOO/libDEM/ContactLaw.hpp:39,
                 from /home/user/granoo/tags/2.0/Lib/GranOO/libDEM/ContactDetection.hpp:39,
                 from /home/user/granoo/tags/2.0/Lib/GranOO/libDEM/ContactDetection.cpp:34:
/usr/include/boost/serialization/set.hpp: In function ‘void boost::serialization::load_set_collection(Archive&, Container&)’:
/usr/include/boost/serialization/set.hpp:40:33: error: ‘library_version_type’ in namespace ‘boost::serialization’ does not name a type; did you mean ‘item_version_type’?
   40 |     const boost::serialization::library_version_type library_version(
      |                                 ^~~~~~~~~~~~~~~~~~~~
      |                                 item_version_type
/usr/include/boost/serialization/set.hpp:47:30: error: ‘library_version_type’ is not a member of ‘boost::serialization’; did you mean ‘item_version_type’?
   47 |     if(boost::serialization::library_version_type(3) < library_version){
      |                              ^~~~~~~~~~~~~~~~~~~~
      |                              item_version_type
/usr/include/boost/serialization/set.hpp:47:56: error: ‘library_version’ was not declared in this scope
   47 |     if(boost::serialization::library_version_type(3) < library_version){
      |                                                        ^~~~~~~~~~~~~~~
make[2]: *** [Lib/CMakeFiles/GranOO.dir/build.make:758: Lib/CMakeFiles/GranOO.dir/GranOO/libDEM/ContactDetection.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:267: Lib/CMakeFiles/GranOO.dir/all] Error 2
make: *** [Makefile:149: all] Error 2