Recently I upgraded my pc to ubuntu 22.
I am trying to compile liggghts after compiling vtk and openmpi.
I am stuck with this error:
mpicxx -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -std=c++17 -fPIC -I../../lib/vtk/install/include/vtk-8.0 -DLAMMPS_VTK -DSUPERQUADRIC_ACTIVE_FLAG -DNONSPHERICAL_ACTIVE_FLAG -c ../compute_pair_gran_local.cpp
In file included from ../granular_pair_style.h:47,
from ../pair_gran_proxy.h:58,
from ../compute_pair_gran_local.cpp:50:
../utils.h: In function ‘std::string LIGGGHTS::Utils::int_to_string(int)’:
../utils.h:70:12: error: invalid ‘static_cast’ from type ‘std::__cxx11::basic_ostringstream’ to type ‘std::ostringstream&’ {aka ‘std::__cxx11::basic_ostringstream&’}
70 | return static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << a ) ).str();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:1399: compute_pair_gran_local.o] Error 1
make[1]: Leaving directory '/home/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2
Can I get some sdvice to solve this issue?
or if there is any LIGGGHTS istallation guidance which is for ubuntu 22 or mac M1, could I get the link?
Thank you
Daniel Queteschiner | Mon, 05/16/2022 - 14:25
Workaround
See
https://www.cfdem.com/forums/liggghts-make-auto-installation-error
gibel | Tue, 05/17/2022 - 02:46
Thank you
Thank you
Finally compiled LIGGGHTS.