[Paraview] [PARAVIEW INSTALLATION]_undefined reference to 'gzopen' 'gzclose' 'gzread' 'gzwrite'

Ofosu Ampadu Joseph joseph at al.t.u-tokyo.ac.jp
Sun Apr 5 08:38:06 EDT 2015


Hello,

I am new to Paraview and I am now making a fresh installation on a 
ubuntu 14.04 LTS platform. However after about 50% building with the 
command "make" I get the following error:

Linking CXX shared library ../../../../../lib/libvtkxdmf2-pv4.3.so 
<http://libvtkxdmf2-pv4.3.so>
CMakeFiles/vtkxdmf2.dir/gzstream.cxx.o: In function 
`gzstreambuf::open(char const*, int)':
/home/ofosu/ParaView-v4.3.1-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/gzstream.cxx:63: 
undefined reference to `gzopen'
CMakeFiles/vtkxdmf2.dir/gzstream.cxx.o: In function `gzstreambuf::close()':
/home/ofosu/ParaView-v4.3.1-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/gzstream.cxx:75: 
undefined reference to `gzclose'
CMakeFiles/vtkxdmf2.dir/gzstream.cxx.o: In function 
`gzstreambuf::underflow()':
/home/ofosu/ParaView-v4.3.1-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/gzstream.cxx:94: 
undefined reference to `gzread'
CMakeFiles/vtkxdmf2.dir/gzstream.cxx.o: In function 
`gzstreambuf::flush_buffer()':
/home/ofosu/ParaView-v4.3.1-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/gzstream.cxx:112: 
undefined reference to `gzwrite'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkxdmf2-pv4.3.so.1] Error 1
make[1]: *** 
[VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2.dir/all] Error 2
make: *** [all] Error 2

Meanwhile, I have both gzstream.h and zlib.h header files in my include 
directory and I still encounter this problem.

I would be very grateful if someone could advice me on how to proceed. 
Thanks!!!!

-- 
Ofosu Joseph Ampadu
The University of Tokyo
Graduate School of Frontier Sciences
Advanced Energy Department
Komurasaki Laboratory
joseph at al.t.u-tokyo.ac.jp
[+818044652407 <tel:%5B%2B818044652407>]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150405/9e5bca73/attachment.html>


More information about the ParaView mailing list