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