> On Mar 8, 2016, at 7:00 AM, Harshad Sahasrabudhe <hsaha...@purdue.edu> wrote: > > Hi John and Vasileios, > > Thanks for looking into this. I get the same error for many different > versions of VTK (including 5.8), so the problem isn't with the VTK version. I > might have found the root of the problem with linking. In libmesh version > 0.9.4, the link test with VTK looks like this: > > configure:33738: mpiicpc -o conftest > -I/apps/rhel6/vtk/5.10.1//VTK/include/vtk-5.10/ conftest.cpp -lvtkIO > -lvtkCommon -lvtkFiltering -lvtkImaging > -Wl,-rpath,/apps/rhel6/vtk/5.10.1//VTK/lib/vtk-5.10/ > -L/apps/rhel6/vtk/5.10.1//VTK/lib/vtk-5.10/ -lvtkIO -lvtkCommon > -lvtkFiltering -lvtkImaging >&5 > > This succeeds on my machine. However, in 0.9.5, it's missing the -Wl,-rpath > option, which is why I think it fails: > > configure:35934: mpiicpc -o conftest > -I/apps/rhel6/vtk/5.10.1//VTK/include/vtk-5.10/ conftest.cpp -lvtkIO > -lvtkCommon -lvtkFiltering -lvtkImaging > -L/apps/rhel6/vtk/5.10.1//VTK/lib/vtk-5.10/ -lvtkIO -lvtkCommon > -lvtkFiltering -lvtkImaging >&5 > ld: warning: libvtkDICOMParser.so.5.10, needed by > /apps/rhel6/vtk/5.10.1//VTK/lib/vtk-5.10//libvtkIO.so, not found (try using > -rpath or -rpath-link) > ld: warning: libvtkNetCDF.so.5.10, needed by > /apps/rhel6/vtk/5.10.1//VTK/lib/vtk-5.10//libvtkIO.so, not found (try using > -rpath or -rpath-link)
-rpath has nothing to do with undefined references at link time. It's for "baking in" the library path to an executable so it can be found at runtime regardless of your LD_LIBRARY_PATH variable. The problem here seems to be that you are have built a version of VTK in which "libvtkDICOMParser" is required by libvtkIO, something I've never encountered before. It also appears that you are using the Intel compiler to build libmesh? Did you use the same compiler to build VTK? ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users