A patch has been pushed/merged to VTK/master but ParaView did not catch it
up yet.

To fix it, you can add vtkzlib inside the pivate_depends of the
VTK/IO/Image/module.cmake

Seb


On Wed, May 7, 2014 at 5:31 PM, Moreland, Kenneth <[email protected]> wrote:

>   I'm trying to compile the latest snapshot on master, and I'm getting
> several linker errors regarding the NIFTI reader and writer. They appear to
> be missing some zlib symbols. Is it possible that the zlib library is
> somehow left out of the target libraries in the CMake file?
>
>  The following are the specific errors:
>
>   Linking CXX shared library ../../../lib/libvtkIOImage-pv4.1.dylib
> Undefined symbols for architecture x86_64:
>   "_vtk_zlib_gzclose", referenced from:
>       vtkNIFTIImageReader::CanReadFile(char const*) in
> vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestInformation(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageWriter::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o
>   "_vtk_zlib_gzeof", referenced from:
>       vtkNIFTIImageReader::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>   "_vtk_zlib_gzopen", referenced from:
>       vtkNIFTIImageReader::CanReadFile(char const*) in
> vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestInformation(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageWriter::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o
>   "_vtk_zlib_gzread", referenced from:
>       vtkNIFTIImageReader::CanReadFile(char const*) in
> vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestInformation(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>       vtkNIFTIImageReader::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>   "_vtk_zlib_gzseek", referenced from:
>       vtkNIFTIImageReader::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o
>   "_vtk_zlib_gzwrite", referenced from:
>       vtkNIFTIImageWriter::RequestData(vtkInformation*,
> vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
>
>  -Ken
>
>     ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: [email protected]
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.sandia.gov/~kmorel
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to