[vtkusers] Compiling VTK with Mingw64 ?

Ashika Umanga Umagiliya aumanga at biggjapan.com
Sat Sep 17 11:24:50 EDT 2011


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
>



More information about the vtkusers mailing list