First time here? Checkout the FAQ!
x
0 votes
by (630 points)

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

1 Answer

0 votes
by (680 points)
selected by
 
Best answer
Hi

The VTK API changed. Please let know if this commit works. I cannot test it since I do not have VTK9.
by (630 points)
I pulled the most recent vtk and meshalyzer, but I get the same error.
by (140 points)
Check your export PATH in your bashrc maybe you can fix it by changing your export PATHs ( carputils , meshalyzer..)
by (630 points)
my bashrc is the same as on my laptop as well as the settings.yaml file for carputils. Everything seems the same, except that I get the error for running make in the meshalyzer directory.
by (680 points)
Hi

I realised that I updated the new branch. Please try the VBO branch which is soon to be the main branch When you do the clone, add the  "-b VBO" option to the git command

git clone -b VBO repo_url
by (630 points)
Hi,

As far as I can see, there is no VBO branch on git.
$ git clone -b VBO https://gitlab.kitware.com/vtk/vtk.git
and
$ git clone -b VBO https://github.com/Kitware/VTK.git
Both give me : fatal: Remote branch VBO not found in upstream origin.

I checked and I see: master, nightly-master, paraview/release, release; dashboard, hooks, release-6.3.

Can I provide you with more information so you can help me figure this out?

Thank you!
by (680 points)
I was talking about meshalyzer. I have no control over vtk.
by (630 points)
Cloning the VBO branch worked!

Thank you a lot!
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...