I fixed the initial compile error (vtknetcdf) and checked it into master/release branches in git. I am working through Christian's patch as well so we can have this working for 5.8.1.<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 5:41 AM, Ashika Umanga Umagiliya <span dir="ltr"><<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Christian ,<br>
<br>
I compiled using the build David suggested.Its the same build i<br>
mentioned in the first post.<br>
Anyway I could not find the Mingw64 build that you used ( g++ 4.4.5<br>
(20100604)) in SourceForge site anymore.<br>
<br>
Looks like I have to look for another Mingw build which compiles both<br>
QT and VTK.<br>
<div><div></div><div class="h5"><br>
<br>
On 20 September 2011 17:54, Christian Lackas <<a href="mailto:lackas@invicro.com">lackas@invicro.com</a>> wrote:<br>
> * Ashika Umanga Umagiliya <<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>> [110920 10:22]:<br>
><br>
> Umanga,<br>
><br>
> it seems (see also the older threads) that not all versions of MinGW-w64<br>
> are able to successfully compile VTK. You might have to use a different<br>
> one (or try to work around the internal compiler error, which could be<br>
> tough and might lead to unexpected results).<br>
><br>
> The version I proposed works for VTK as well as Qt and a couple of other<br>
> libraries (e.g. ITK, Dcmtk, ImageMagick, Qwt, ...), at least for us.<br>
><br>
> Did you already give the build David suggested a try?<br>
><br>
> Christian<br>
><br>
> --<br>
> Dr. Christian Lackas, Managing Partner<br>
> inviCRO, LLC -- In Imaging Yours<br>
> P: <a href="tel:%2B1%20617%20933%208733" value="+16179338733">+1 617 933 8733</a>, F: <a href="tel:%2B49%202203%209034722" value="+4922039034722">+49 2203 9034722</a>, E: <a href="mailto:lackas@invicro.com">lackas@invicro.com</a><br>
> <a href="http://www.invicro.com/" target="_blank">http://www.invicro.com/</a> <a href="http://www.spect-ct.com/" target="_blank">http://www.spect-ct.com/</a><br>
><br>
>> Hi all,<br>
>><br>
>> I applied Christians patch to the latest code in VTK git.But during<br>
>> compilation , it gave following error.<br>
>><br>
>> ------------------------<br>
>> [ 79%] Building CXX object<br>
>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkVolumeRayCastSpaceLeapingImageFilter.cxx.obj<br>
>> [ 79%] Building CXX object<br>
>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkGPUVolumeRayCastMapper.cxx.obj<br>
>> [ 79%] Building CXX object<br>
>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkHAVSVolumeMapper.cxx.obj<br>
>> [ 79%] Building CXX object<br>
>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkProjectedAAHexahedraMapper.cxx.obj<br>
>> [ 79%] Building CXX object<br>
>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkProjectedTetrahedraMapper.cxx.obj<br>
>> C:\git-checkouts\VTK\VolumeRendering\vtkProjectedTetrahedraMapper.cxx:<br>
>> In function 'void vtkProjectedTetrahedraMapperTransformPoints(const<br>
>> point_type*, vtkIdTyp<br>
>> e, const float*, const float*, float*) [with point_type = long int, vtkIdType =<br>
>> long long int]':<br>
>> C:\git-checkouts\VTK\VolumeRendering\vtkProjectedTetrahedraMapper.cxx:98:6:<br>
>> internal compiler error: in ix86_vectorize_builtin_vec_perm_ok, at<br>
>> config/i386/i386.c:30247<br>
>> Please submit a full bug report,with preprocessed source if<br>
>> appropriate.See <<a href="http://gcc.gnu.org/bugs.html" target="_blank">http://gcc.gnu.org/bugs.html</a>> for instructions.<br>
>> mingw32-make[2]: ***<br>
>> [VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkProjectedTetrahedraMapper.cxx.obj]<br>
>> Error 1<br>
>> mingw32-make[1]: *** [VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/all] Err<br>
>> or 2<br>
>> mingw32-make: *** [all] Error 2<br>
>><br>
>> -----------------------<br>
>><br>
>> Any guidance please.<br>
>><br>
>> umanga<br>
>><br>
>> On 20 September 2011 05:19, David Partyka <<a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>> wrote:<br>
>> > This build is located:<br>
>> > <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/sezero_4.5_20101002/" target="_blank">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/sezero_4.5_20101002/</a><br>
>> > If anyone else wants to try and use it.<br>
>> ><br>
>> > On Sat, Sep 17, 2011 at 11:24 AM, Ashika Umanga Umagiliya<br>
>> > <<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>> wrote:<br>
>> >><br>
>> >> Hi Christian ,<br>
>> >><br>
>> >> We need to stick to that specific Mingw64 build<br>
>> >> ("mingw-w64-bin_x86_64-mingw_20101002_4.5_sezero") because thats the<br>
>> >> only build which successfully compiles other libraries needed for our<br>
>> >> application - QT and OpenCV.<br>
>> >> I will try using your patch .<br>
>> >><br>
>> >> thank you<br>
>> >><br>
>> >><br>
>> >> On 17 September 2011 00:08, Christian Lackas <<a href="mailto:lackas@invicro.com">lackas@invicro.com</a>> wrote:<br>
>> >> > * Ashika Umanga Umagiliya <<a href="mailto:aumanga@biggjapan.com">aumanga@biggjapan.com</a>> [110916 06:15]:<br>
>> >> ><br>
>> >> > Umanga,<br>
>> >> ><br>
>> >> > please see:<br>
>> >> ><br>
>> >> ><br>
>> >> > <a href="http://vtk.1045678.n5.nabble.com/Building-VTK-on-64-bit-Windows-using-MinGW-w64-td3351101.html" target="_blank">http://vtk.1045678.n5.nabble.com/Building-VTK-on-64-bit-Windows-using-MinGW-w64-td3351101.html</a><br>
>> >> ><br>
>> >> > which contains a patch we used to successfully compile VTK with<br>
>> >> > MinGW-w64.<br>
>> >> ><br>
>> >> > You might also want to check out this thread:<br>
>> >> ><br>
>> >> > <a href="http://www.vtk.org/pipermail/vtkusers/2011-April/116318.html" target="_blank">http://www.vtk.org/pipermail/vtkusers/2011-April/116318.html</a><br>
>> >> ><br>
>> >> > which also discusses GCC versions.<br>
>> >> ><br>
>> >> > The Mantis report I filed a while back was apparently removed, cannot<br>
>> >> > tell why or what happed to it:<br>
>> >> ><br>
>> >> > <a href="http://www.itk.org/Bug/view.php?id=11742" target="_blank">http://www.itk.org/Bug/view.php?id=11742</a><br>
>> >> ><br>
>> >> > Christian<br>
>> >> ><br>
>> >> > --<br>
>> >> > Dr. Christian Lackas, Managing Partner<br>
>> >> > inviCRO, LLC -- In Imaging Yours<br>
>> >> > P: <a href="tel:%2B1%20617%20933%208733" value="+16179338733">+1 617 933 8733</a>, F: <a href="tel:%2B49%202203%209034722" value="+4922039034722">+49 2203 9034722</a><br>
>> >> > <a href="http://www.invicro.com/" target="_blank">http://www.invicro.com/</a> <a href="http://www.spect-ct.com/" target="_blank">http://www.spect-ct.com/</a><br>
>> >> ><br>
>> >> >> Greetings all,<br>
>> >> >><br>
>> >> >> I tried to compile VTK with Mingw64 compiler .(using personal Mingw<br>
>> >> >> build "mingw-w64-bin_x86_64-mingw_20101002_4.5_sezero" )<br>
>> >> >> During compilation it gave warnings saying "warning: cast from pointer<br>
>> >> >> to integer of different size".<br>
>> >> >> And the compilation failed at -<br>
>> >> >><br>
>> >> >> ------------------------<br>
>> >> >><br>
>> >> >> [ 23%] Building C object<br>
>> >> >> Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/v1hpg.c.ob<br>
>> >> >> [ 23%] Building C object<br>
>> >> >> Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/v2i.c.obj<br>
>> >> >> C:\svn-checkouts\vtk-5.8.0\Utilities\vtknetcdf\v2i.c:76:21: error:<br>
>> >> >> redefinition<br>
>> >> >> of typedef 'schar'<br>
>> >> >> C:\svn-checkouts\vtk-5.8.0\Utilities\vtknetcdf\/ncx.h:160:21: note:<br>
>> >> >> previous declaration of 'schar' was here<br>
>> >> >> mingw32-make[2]: ***<br>
>> >> >> [Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/v2i.c.obj] Error 1<br>
>> >> >> mingw32-make[1]: *** [Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/all]<br>
>> >> >> Error 2<br>
>> >> >> mingw32-make: *** [all] Error 2<br>
>> >> >><br>
>> >> >> ----------------------------------------------<br>
>> >> >> Has anyone compiling VTK suing Mingw64 ?<br>
>> >> >><br>
>> >> >> Thanks in advance.<br>
>> >> >> umanga<br>
>> >> >> _______________________________________________<br>
>> >> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> >><br>
>> >> >> Visit other Kitware open-source projects at<br>
>> >> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> >><br>
>> >> >> Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >> >><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>
>> >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >> ><br>
>> >> > Visit other Kitware open-source projects at<br>
>> >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >> ><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>
>> >> _______________________________________________<br>
>> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >><br>
>> >> Visit other Kitware open-source projects at<br>
>> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >><br>
>> >> Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >><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>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><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>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
</div></div></blockquote></div><br>