[Paraview] Compilation error

Anton Gladky gladky.anton at gmail.com
Wed Feb 13 12:09:22 EST 2013


Hi all,

the latest 3.98.1 version fails to build on Debian, when the option
VTK_USE_SYSTEM_JPEG is ON.

=======
/tmp/buildd/paraview-3.98.1/VTK/IO/Image/vtkJPEGReader.cxx: In
function 'void jpeg_mem_src(j_decompress_p
tr, void*, long int)':
/tmp/buildd/paraview-3.98.1/VTK/IO/Image/vtkJPEGReader.cxx:95:80:
error: declaration of C function 'void
jpeg_mem_src(j_decompress_ptr, void*, long int)' conflicts with
In file included from
/tmp/buildd/paraview-3.98.1/obj-x86_64-linux-gnu/VTK/ThirdParty/jpeg/vtk_jpeg.h:29:
0,
                 from
/tmp/buildd/paraview-3.98.1/VTK/IO/Image/vtkJPEGReader.cxx:24:
/usr/include/jpeglib.h:961:13: error: previous declaration 'void
jpeg_mem_src(j_decompress_ptr, unsigned
char*, long unsigned int)' here
=======

As I understand function jpeg_mem_src() is declared in
/usr/include/jpeglib.h differently as in vtkJPEGReader.cxx.
The previous 3.98.0 version did not have such problem. How can one fix that?

Thanks,

Anton


More information about the ParaView mailing list