building the FacetAnalyzer plugin fails
Closed this issue · 10 comments
Dear Roman,
I am trying to build the FacetAnalyzer plugin on Ubuntu following your PDF available on Researchgate. I encountered no problem when building Paraview (5.7) and ITK (5.0.1) from source, but I get an error with cmake (3.10.2) when trying to build the plugin. I used the required options in cmake (e.g. BUILD SHARED LIBS ON for Paraview) as indicated in the PDF.
Do I need particular versions of Paraview, ITK and cmake to build the plugin?
Best regards,
Jerome Carnis
Hi Jerome,
Yes, generally not all combinations of ITK, VTK and PV work well together. The ones you used are possilby to new, especially the changes that came with ITK-5 are not tested for this plug-in. I just checked master and it still works. Master uses VTK from PV-5.2.0
Lines 42 to 43 in 189796b
and ITK-4.12.2
Lines 60 to 61 in 189796b
There is also the PV-5.5.2 branch, which worked end of last year and is currently tested. There used to be this issue:
https://gitlab.kitware.com/paraview/paraview/issues/18454
If you are not bound to built it yourself, you could also try to run PV with the plugin from one of the docker images (https://gitlab.com/romangrothausmann/FacetAnalyser/container_registry).
Sadly, most of them got lost when I re-created the GL project with CI/CD integration to GH. I will try to rebuilt them in the next days.
What version of PV have you chosen? I can only see that use ITK-4.12.
Dear Roman,
I use the PV version 5.2.0 that you recommended (git clone --depth 1 -b v5.2.0 https://gitlab.kitware.com/paraview/paraview.git), along with Python2.7 and Qt4 (4.8.7).
Should I try to install VTK separately and use an earlier version of PV?
OK. VTK from PV should be fine. Looking at the configuration for the docker image I could imagine that you need this:
Line 97 in 189796b
for your cmake configuration, perhaps also some of the other settings. You could try the whole cmake command line with adjusted paths to your setup.
@carnisj Does it work with -DCMAKE_CXX_FLAGS="-I/PV_build/"
? If I remove that from the DF, I get the same error as you reported.
Did you set the *PATH
variables before starting PV? Like in the DF here
Lines 116 to 117 in 189796b
but adjusted to your chosen set-up?
Dear Roman,
Exporting LD_LIBRARY_PATH solved the problem, thank you for your help.
Great to hear you got it working and thanks for your report. Let me know how it goes.
If you need a newer version of PV, try the instructions from the Dockerfile in the pv-5.5.2 branch.