<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>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?</div>
<div><br>
</div>
<div>The following are the specific errors:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div>
<div>Linking CXX shared library ../../../lib/libvtkIOImage-pv4.1.dylib</div>
<div>Undefined symbols for architecture x86_64:</div>
<div> "_vtk_zlib_gzclose", referenced from:</div>
<div> vtkNIFTIImageReader::CanReadFile(char const*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageWriter::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o</div>
<div> "_vtk_zlib_gzeof", referenced from:</div>
<div> vtkNIFTIImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> "_vtk_zlib_gzopen", referenced from:</div>
<div> vtkNIFTIImageReader::CanReadFile(char const*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageWriter::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o</div>
<div> "_vtk_zlib_gzread", referenced from:</div>
<div> vtkNIFTIImageReader::CanReadFile(char const*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> vtkNIFTIImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> "_vtk_zlib_gzseek", referenced from:</div>
<div> vtkNIFTIImageReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageReader.cxx.o</div>
<div> "_vtk_zlib_gzwrite", referenced from:</div>
<div> vtkNIFTIImageWriter::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in vtkNIFTIImageWriter.cxx.o</div>
<div>ld: symbol(s) not found for architecture x86_64</div>
<div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
</div>
</blockquote>
<div><br>
</div>
<div>-Ken</div>
<div>
<div><br>
</div>
<div>
<div><font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size: 10pt; "> **** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
</span></font></font><font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size: 10pt; ">*** *** *** email: <a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a> </span></font></font></div>
<div><font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size: 10pt; ">** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.sandia.gov/~kmorel">http://www.sandia.gov/~kmorel</a></span></font></font></div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>