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) . . Is there an option in configure script that I can use to enable -rpath for the linker? Thanks, Harshad On Fri, Mar 4, 2016 at 1:45 PM, Vasileios Vavourakis <vas...@gmail.com> wrote: > Hi Harshad, > > I have had the same problem awhile ago, and frankly the only workaround I > found was to use VTK version 5.8 > Hope this helps. > > cheers, > Vas > > > > > On 4 March 2016 at 16:53, Harshad Sahasrabudhe <hsaha...@purdue.edu> > wrote: > >> Hi John, >> >> I tried configuring with VTK 6.3.0, but I still get the same linking >> errors. I'm not sure what the problem could be. Maybe we need to link with >> more VTK libraries to resolve the undefined references? >> >> I have attached the config.log. >> >> Thanks, >> Harshad >> >> >> >> On Thu, Mar 3, 2016 at 5:02 PM, John Peterson <jwpeter...@gmail.com> >> wrote: >> >> > >> > >> > On Thu, Mar 3, 2016 at 9:46 AM, Harshad Sahasrabudhe < >> hsaha...@purdue.edu> >> > wrote: >> > >> >> Hi John, >> >> >> >> I re-configured and re-checked that the two flags libmesh_LIBS and LIBS >> >> were not set in the environment. I have attached the config.log. >> >> >> > >> > OK, so I think the extra flags are just coming from our call to >> > AC_HAVE_LIBRARY: >> > >> > AC_HAVE_LIBRARY([vtkIO], [enablevtk=yes], [enablevtk=no], >> > [-lvtkCommon -lvtkFiltering -lvtkImaging]) >> > >> > We should probably update this since AC_HAVE_LIBRARY is obsolete [1], >> but >> > this isn't actually the problem. >> > >> > The problem is that your version of VTK apparently can't link a main >> > program against only "-lvtkIO -lvtkCommon -lvtkFiltering -lvtkImaging", >> > since there are a ton of undefined references: >> > >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtkmetaio::MetaImage::HeaderSize() const' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtk_TIFFIsTiled' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtk_zlib_gzread' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtk_TIFFSetWarningHandler' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtksys::Glob::FindFiles(std::string const&)' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtksys::SystemTools::GetFilenameName(std::string const&)' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `LSDynaFamily::BufferChunk(LSDynaFamily::WordType, long long)' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtkmetaio::MetaImage::Modality() const' >> > /apps/rhel6/vtk/5.10.1/VTK/lib/vtk-5.10/libvtkIO.so: undefined reference >> > to `vtk_png_set_error_fn' >> > ... >> > plus many more. >> > >> > I actually don't know if we've ever tested our configure scripts with >> VTK >> > 5.10.1, I see a note there about 5.4, but nothing later. Is there any >> way >> > you could try a newer version, like 6.3? I'm pretty sure that works. >> > >> > [1]: >> > >> https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html >> > >> > -- >> > John >> > >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Libmesh-users mailing list >> Libmesh-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/libmesh-users >> >> > ------------------------------------------------------------------------------ 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