[vtkusers] build VTK in windows 10, msys2 mingw64 no success so far

Robert Maynard robert.maynard at kitware.com
Thu Aug 16 15:57:43 EDT 2018


You can try adding `-Wa,-mbig-obj` to your CMAKE_CXX_FLAGS to enable
large object compilation (
https://stackoverflow.com/questions/16596876/object-file-has-too-many-sections
).

In general mingw is not a tested platform for VTK.
On Thu, Aug 16, 2018 at 3:42 PM Talal Albader <badertalal at gmail.com> wrote:
>
> Hi,
> I am facing diffeculties in building VTK under msys2  ,as a beginner in using cmake, msys2 and VTK i hope someone can help me
> the case:
>    - i have windows 10 machine, with msys2 with mingw64 and cmake  as my building tools
>   -i downloaded VTK-8.1.1 and followed every tutorial i found on the net to configure and build vtk but so far no sucess, every time it crashes with error
>
> for the case I have now this is the error message i am facing:
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
> [ 46%] Built target VTKData
> C:/dev/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles\vtkCommonCore.dir\vtkDataArray.cxx.obj: too many sections (106694)
> C:\dev\msys\tmp\ccTEaRyg.s: Assembler messages:
> C:\dev\msys\tmp\ccTEaRyg.s: Fatal error: can't write 75 bytes to section .text of CMakeFiles\vtkCommonCore.dir\vtkDataArray.cxx.obj: 'file too big'
> C:/dev/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles\vtkCommonCore.dir\vtkDataArray.cxx.obj: too many sections (106694)
> C:\dev\msys\tmp\ccTEaRyg.s: Fatal error: can't close CMakeFiles\vtkCommonCore.dir\vtkDataArray.cxx.obj: file too big
> mingw32-make[2]: *** [Common\Core\CMakeFiles\vtkCommonCore.dir\build.make:432: Common/Core/CMakeFiles/vtkCommonCore.dir/vtkDataArray.cxx.obj] Error 1
> mingw32-make[1]: *** [CMakeFiles\Makefile2:1239: Common/Core/CMakeFiles/vtkCommonCore.dir/all] Error 2
> mingw32-make: *** [Makefile:140: all] Error 2
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> most of tutorial in youtube using visual studio which i do not want to use , my plan to get VTK working with Qt support away from visual studio
>
>
> thanks in advance
>
>
> Talal
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list