[vtkusers] Selective, quiet linker failure to find libraries?

BBerco bebe0705 at colorado.edu
Thu Sep 20 12:07:52 EDT 2018

I've encountered a strange behavior of VTK 8.1.1 on Ubuntu 18.04.1 LTS.
Namely, even the simple examples such as that of GetMiscCellData on Bill
Lorensen's website fail like so:

1. `cmake .. ` from build directory : no problem, VTK found,
${VTK_LIBRARIES} contains the list of all the libraries to be loaded
2. `make` : the build completes smoothly and the linker does not complain
3. `.\GetMiscCellData` fails, with the error message : [...] error while
loading shared libraries:  libvtkIOXMLParser-8.1.so.1 : cannot open shared
object file: No such file or directory"

What is extremely puzzling is that running ldd on the created executable
shows that SOME of the VTK libraries were found (libvtkIOXML-8.1.so.1 for
instance), while others were not (like libvtkIOXMLParser-8.1.so.1) . What is
even more puzzling is that all these shared libraries exists in
\usr\local\lib\ ! 

I have no idea what's going on. Any advice?

Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html

More information about the vtkusers mailing list