[vtkusers] VTK and MinGW on Windows 7

Jim Peterson jimcp at cox.net
Thu Sep 23 14:07:13 EDT 2010


Wagner Sales wrote:
> Hi all,
>
> I'm trying to compile VTK with MinGW on Windows 7 and the compilation
> fails. My version of mingw are 4.4, installed with Qt 4.7.0 (
> NokiaSDK ).
> Someone built VTK with MinGW here? Or VTK doesn't support MinGW? Any
> help would be appreciated. The compiler ouput are:
>
> In file included from C:\Users\Navegador2\Documents\Sources\vtk-5.6.0\Utilities\
> vtknetcdf\/nc.h:22,
>                  from C:\Users\Navegador2\Documents\Sources\vtk-5.6.0\Utilities\
> vtknetcdf\attr.c:8:
> c:\qt\2010.05\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h
> :104: error: two or more data types in declaration specifiers
> mingw32-make[2]: *** [Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/attr.c.obj] E
> rror 1
> mingw32-make[1]: *** [Utilities/vtknetcdf/CMakeFiles/vtkNetCDF.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>   
Wagner,
I was unable to get a usable set of shared libraries for windows XP 
using MingW, I ended up using Visual Studio Express which is a free 
download and builds usable Windows outputs for XP at least. I got the 
impression the MingW outputs assumed you would be using it from a Unix 
Shell emulator on windows like CygWin.

Hope that Helps,
Jim



More information about the vtkusers mailing list