[vtkusers] VTK and MinGW on Windows 7

Gib Bogle g.bogle at auckland.ac.nz
Thu Sep 23 16:55:46 EDT 2010


Quoting Wagner Sales <wsales at gmail.com>:

> 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
>
>
> Best Regards,
>
> Wagner Sales

Hi Wagner,

I am using VTK on Windows 7, with MinGW 4.4.0.  I have successfully  
built the libraries in both shared and static form.  I don't recall  
seeing any issues of the kind you mention.  I do see one difference in  
our setups, though.  I downloaded and installed MinGW separately, i.e.  
not using the Nokia-supplied version.  You might try that.  Another  
possibly unrelated piece of info comes to mind.  I was having trouble  
building Qt-4.6.3 from the source code that comes with the SDK (this  
was 2010.04) and was advised by a Nokia bug-killer that it is not in  
general possible to rebuild Qt from those sources - instead one needs  
to start from the source distribution package.

In any case, I can attest to the fact that MinGW works well for  
building both VTK and Qt, without any need for Cygwin.

If someone who knows a lot more about Cmake than I do can suggest any  
of my build files I could send you that might help, I'd be happy to  
oblige.

Cheers
Gib

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the vtkusers mailing list