<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,
<br>
<br>
I am using VTK-4.2 and QT4.
<br>
When I try to create a *.png image file I get the following error:
<br>
<br>
<font face="Courier New, Courier, monospace">  libpng warning:
Application was compiled with png.h from libpng-1.0.12<br>
  libpng warning: Application  is  running with png.c from libpng-1.2.8<br>
  libpng error: Incompatible libpng version in application and library<br>
  ERROR: In /home/martin/local/src/vtk/vtk-4.2/IO/vtkPNGWriter.cxx,
line 156<br>
  vtkPNGWriter (0x82953c8): Unable to write PNG file!<br>
</font><br>
It seems as if VTK-4.2 comes with libpng-1.0.12 by default on my system
I use libpng-1.2.8.
<br>
I tried to disable the use of libpng-1.0.12 when I configured VTK. I
did the following:
<br>
<br>
I did the following:<br>
<br>
changed to CMake advanced mode<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">
<br>
<font face="Courier New, Courier, monospace">  VTK_USE_RENDERING    ON<br>
<br>
  PNG-LIBRARY          /usr/lib/libpng.so    (-&gt; libpng.so.3 -&gt;
libpng.so.3.1.2.8)<br>
  PNG_PNG_INCLUDE_DIR  /usr/include          (this contains a file
png.h version 3.1.2.8)</font><br>
<br>
To me this seems ok.<br>
<br>
<br>
After make and make install I see that the file png.h is no more in the
./includes/vtk directory.<br>
Also libvtkpng.so is no more in ./lib/vtk directory. So far this seems
ok.<br>
<br>
But somehow this didn't help!
I still get the same error. Even after a make clean and make distclean<br>
and make my program. I can't understand why...<br>
<br>
<br>
Any idea?<br>
<br>
Thanks, MB
<br>
</body>
</html>