[vtkusers] VTK and MinGW on Windows 7
Bill Lorensen
bill.lorensen at gmail.com
Thu Sep 23 16:40:05 EDT 2010
I use mingw all of the time to build vtk with shared libraries. I do
not use QT however.
I also install msys and run from that shell.
Bill
On Thu, Sep 23, 2010 at 2:07 PM, Jim Peterson <jimcp at cox.net> wrote:
> 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
> _______________________________________________
> 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