[vtkusers] Compiling VTK with Mingw64 ?
Ashika Umanga Umagiliya
aumanga at biggjapan.com
Tue Sep 20 04:22:12 EDT 2011
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
>
>
More information about the vtkusers
mailing list