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

Reply via email to