[vtkusers] cannot build vtk with mfc with windows 7

Bill Lorensen bill.lorensen at gmail.com
Mon Apr 19 10:49:05 EDT 2010


Try changing that line from:
extern char *sys_errlist[];
to
extern char **sys_errlist;

or better yet,

add
#include <stdlib.h>right before the strerror definition and remove
extern int sys_nerr;
extern char *sys_errlist[];

I think these declarations should be obtained from the include file
and not specified here.

Bill

2010/4/19  <eanton at mycosmos.gr>:
> Hi. I am trying to build the vtk libraries with mfc support and i'm
> experiencing a few errors
> I'm using windows 7 with vs 2008 and vtk 5.4.2 with cmake 2.8.1 x86
> When i compile with no gui support they are built with no problem.
>
> Below are the errors thrown during building. Does anyone know what i'm doing
> wrong.
> The rest of the projects during all_build are built correctly with no
> errors.
>
>
> Also another question: I want to build vtk with itk support.
> From what i read on other posts i need to set the flag in cmake for
> vtk_use_ansi_stdlib
> but there is no such option during configuration even on the advanced
> options.
> Maybe it comes with a different name in vtk 5.4.2? Or is it default?
>
> Thanks a lot
>
>
> 22>------ Build started: Project: vtkNetCDF, Configuration: Release Win32
> ------
> 22>Compiling...
> 22>attr.c
> 20>vtkOpenGLClipPlanesPainter.cxx
> 22>var.c
> 22>v2i.c
> 22>v1hpg.c
> 22>string.c
> 22>putget.c
> 20>vtkOpenGLCamera.cxx
> 22>ncx.c
> 22>posixio.c
> 22>nc.c
> 22>libvers.c
> 22>error.c
> 22>..\..\..\Users\eanton\Desktop\phd\vtk-5.4.2\Utilities\vtknetcdf\error.c(30)
> : error C2090: function returns array
> 22>dim.c
> 20>vtkOpenGLActor.cxx
> 22>Generating Code...
> 20>vtkOpaquePass.cxx
> 20>vtkGLSLShaderDeviceAdapter2.cxx
> 22>Build log was saved at
> "file://c:\vtk\Utilities\vtknetcdf\vtkNetCDF.dir\Release\BuildLog.htm"
> 22>vtkNetCDF - 1 error(s), 0 warning(s)
>
> ------------------------------
>
> 29>------ Build started: Project: vtkMFC, Configuration: Release Win32
> ------
> 29>Compiling...
> 28>vtkIterativeClosestPointTransform.cxx
> 29>vtkMFCWindow.cpp
> 29>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\sdkddkver.h(217) :
> fatal error C1189: #error :  _WIN32_WINNT settings conflicts with _WIN32_IE
> setting
> 29>Build log was saved at
> "file://c:\vtk\GUISupport\MFC\vtkMFC.dir\Release\BuildLog.htm"
> 29>vtkMFC - 1 error(s), 0 warning(s)
>
>
> -----------------------------
>
>
>
> _______________________________________________
> 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