Hello
I installed openCARP with Meshalyzer on my laptop and it is all running fine. Now, I want to install it on my desktop in the office too and it seems to run into a problem I didn't encounter on my laptop. openCARP seems to be working, but when I try to install Meshalyzer by pulling it from the git, adjusting make.conf file and running
$make
I got the following error:
cd src && make
make[1]: Entering directory '/home/u0xxxxxx/Software/meshalyzer/src'
c++ -c -std=c++11 -g -O0 -I. -DOBJ_CLASS -D_REENTRANT -fopenmp -MMD -DNOMINMAX -DUSE_VTK -I/usr/local/include/vtk-9.0 Model.cc -o ../obj/Model.o
Model.cc: In member function ‘bool Model::read_objects(vtkUnstructuredGrid*, bool)’:
Model.cc:498:38: error: cannot bind non-const lvalue reference of type ‘const vtkIdType*& {aka const long long int*&}’ to an rvalue of type ‘const vtkIdType* {aka const long long int*}’
grid->GetCellPoints( i, nn, nvtk );
^
In file included from Model.cc:21:0:
/usr/local/include/vtk-9.0/vtkUnstructuredGrid.h:198:8: note: initializing argument 3 of ‘void vtkUnstructuredGrid::GetCellPoints(vtkIdType, vtkIdType&, const vtkIdType*&)’
void GetCellPoints(vtkIdType cellId, vtkIdType& npts, vtkIdType const*& pts)
^~~~~~~~~~~~~
Makefile:82: recipe for target '../obj/Model.o' failed
make[1]: *** [../obj/Model.o] Error 1
make[1]: Leaving directory '/home/u0xxxxxx/Software/meshalyzer/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
The build of vtk didn't give any errors. Below, I give some extra information on my laptop and my desktop. Let me know if some extra information should be provided in order to be able to help.
Desktop:
Ubuntu 18.04.4 LTS
GNU Make 4.1
cmake version 3.18.0-rc2
c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
mpirun (Open MPI) 4.0.3
vtk-9.0
Laptop:
Ubuntu 18.04.4 LTS
GNU Make 4.1
cmake version 3.17.2
c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
mpirun (Open MPI) 2.1.1
vtk-9.0
Do any of you have any idea what is going wrong?
Thank you already so much for your help!
Lore