This was recently fixed in the CVS HEAD of VTK.<div><br class="webkit-block-placeholder"></div><div>In the file &quot;VTK/Utilities/vtkjpeg/jconfig.h&quot; you should see this block of code in VTK 5.0.4:</div><div><div><br class="webkit-block-placeholder">
</div><div>#if defined(_WIN32) &amp;&amp; !(defined(__CYGWIN__) || defined(__MINGW32__))</div><div>/* Define &quot;boolean&quot; as unsigned char, not int, per Windows custom */</div><div>/* don&#39;t conflict if rpcndr.h already read; Note that the w32api headers</div>
<div>&nbsp;&nbsp; used by Cygwin and Mingw do not define &quot;boolean&quot;, so jmorecfg.h</div><div>&nbsp;&nbsp; handles it later. */</div><div>#ifndef __RPCNDR_H__</div><div>typedef unsigned char boolean;</div><div>#endif</div><div>#define HAVE_BOOLEAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* prevent jmorecfg.h from redefining it */</div>
<div>#endif</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Replace that entire block with this block of code:</div><div><br></div><div><div>#if defined(_WIN32) || defined(__CYGWIN__)</div>
<div>/* typedef &quot;boolean&quot; as unsigned char to match rpcndr.h */</div><div>typedef unsigned char boolean;</div><div>#define HAVE_BOOLEAN &nbsp; &nbsp;/* prevent jmorecfg.h from typedef-ing it as int */</div><div>#endif</div>
<div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div>Please &quot;reply all&quot; to this email and let us know if that works for you. If it does, I will get this change merged into the VTK-5-0 branch next week.</div>
<div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Thanks, (and hope this helps!),</div><div>David Cole</div><div>Kitware, Inc.</div><div><br class="webkit-block-placeholder">
</div><div><br><div class="gmail_quote">On Sat, Mar 22, 2008 at 11:20 AM, Paulo Henrique Junqueira Amorim &lt;<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello All,<br><br>I am compiling VTK 5.0.4 to Pythoin in the MinGW 5.0.0 But made mistakes.<br><br>[ 60%] Building C object Utilities/vtkjpeg/CMakeFiles/vtkjpeg.dir/jquant1.obj<br>[ 60%] Building C object Utilities/vtkjpeg/CMakeFiles/vtkjpeg.dir/jquant2.obj<br>

Linking C shared library ../../bin/libvtkjpeg.dll<br>Creating library file: ../../bin/libvtkjpeg.dll.a<br>[ 60%] Built target vtkjpeg<br>[ 60%] Building C object Utilities/vtktiff/CMakeFiles/vtktiff.dir/tif_jpeg.obj<br>In file included from C:/DOCUME~1/Usuario/Desktop/wrapper/VTK-50~1.4/VTK/UTILIT~1/vtkjpeg/jpeglib.h:27,<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:/DOCUME~1/Usuario/Desktop/wrapper/VTK-50~1.4/VTK/UTILIT~1/vtk_jpeg.h:35,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\Documents and Settings\Usuario\Desktop\wrapper\vtk-5.0.4\VTK\Utilities\vtktiff\tif_jpeg.c:52:<br>

C:/DOCUME~1/Usuario/Desktop/wrapper/VTK-50~1.4/VTK/UTILIT~1/vtkjpeg/jmorecfg.h:247: error: conflicting types for &#39;boolean&#39;<br>C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/rpcndr.h:52: error: previous declaration of &#39;boolean&#39; was here<br>

mingw32-make[2]: *** [Utilities/vtktiff/CMakeFiles/vtktiff.dir/tif_jpeg.obj] Error 1<br>mingw32-make[1]: *** [Utilities/vtktiff/CMakeFiles/vtktiff.dir/all] Error 2<br>mingw32-make: *** [all] Error 2<br><br><br><br>Regards,<br>
<font color="#888888">
Paulo Amorim<br><br>
</font><br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>