Make errors in installation

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Make errors in installation

Virgil
Hello
I'm using Kali and m compiler is (gcc (Debian 10.2.1-3) 10.2.1 20201224). I am trying to install GranOO. I have followed the instructions step by step but after entering the following code:

make && make install

an error was shown. I have attached an image of the error. What can I do to fix this issue and complete the installation? Thanks

Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

Damien André
Administrator
Hello, unfortunately, this is the first time that I see this error :-(

It looks like a problem with the external C++ boost library. I am sorry, I have no idea on how to solve this problem.
Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

Virgil
Ok :(
I'll try again on mint to see if same thing happens again
Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

Claudio
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

Damien André
Administrator
Hello, if you use the current ubuntu LTS version, it should work.

Cheers, Damien.
Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

willstring
In reply to this post by Virgil
Hello-- I can confirm it works perfectly using Linux mint 19.3 Uma

In general I try to avoid using any sort of virtual machines or windows subsystems to run heavy calcs as you lose efficiency (sometimes substantial).  Probably best to just use another computer and do a hard install of the OS.  You can always virtualize Windows on top of Linux instead, since linux is usually the one doing the heavy calcs.  

Reply | Threaded
Open this post in threaded view
|

Re: Make errors in installation

Claudio
This post was updated on .
I installed Ubuntu as a Windows Subsystem Linux but I get errors for missing VTK 6 errors again. I will try to fix them like I did in Debian.
Thanks for the tip about the virtual machine; I only use the VM for local development, and then send the heavy duty calculations to a dedicated server!

Edit:
Worked on WSL Ubuntu 20.04. I had to additionally install libvtk6.3-qt, and copy some files in /usr/bin (vtkWrapHierarchy-6.3, vtkParseOGLExt-6.3, vtkHashSource-6.3, vtkEncodeString-6.3)