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

David Gobbi david.gobbi at gmail.com
Thu Sep 20 12:20:52 EDT 2018


Hi Ben,

Linux doesn't see new libraries in /usr/local/lib until you run 'ldconfig'.

 - David

On Thu, Sep 20, 2018 at 10:07 AM BBerco <bebe0705 at colorado.edu> wrote:

> 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?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180920/a71c6e02/attachment.html>


More information about the vtkusers mailing list