[vtkusers] VTK5.8 Bug in Rebuilding "ALL_BUILD"?

Wenlong Wang scc.wwl at gmail.com
Tue Oct 25 16:10:57 EDT 2011


Hi Alex,

It's OK now. I uninstalled the Vtk and reinstalled it. Now it works well. I
don't know why, but it's working now.

Thank you very much.

Wenlong

2011/10/25 Alex Malyushytskyy <alexmalvtk at gmail.com>

> As far as I understand this code is not meant to be compiled under windows
> I would check options set in CMake again.
>
> On Tue, Oct 25, 2011 at 5:22 AM, Wenlong Wang <scc.wwl at gmail.com> wrote:
> > Dear all,
> >
> > I'm setting up VTK5.8 in my Microsoft Vista. I would like to use it with
> my
> > VS2008 compiler and C++.
> >
> > I've installed VTK5.8 into my system and used CMake to configure it. I
> > turned vtk_use_guisupport, build_examples and vtk_use_mfc on and left all
> > other options as default.
> >
> > However, as I finished with CMake and tried to rebuild "ALL_BUILD" in
> > VTK.sln, there was a failure happens in line 35 of 'error.c' in "D:\VTK
> > 5.8.0\VTK\Utilities\vtknetcdf\
> > error.c". The error message says "error C2090: the function returns an
> > array". And this error caused the failure of building vtkNetCDF.lib, then
> > many failures happens because the .lib file doesn't exist.
> >
> > In line 35 of error.c in VTK5.8.0, the source code is,
> >
> > /* provide a strerror function for older unix systems */
> > static char *
> > strerror(int errnum)
> > {
> >     extern int sys_nerr;
> >     extern char *sys_errlist[];           //The error happens here
> >
> >     if(errnum < 0 || errnum >= sys_nerr) return NULL;
> >     /* else */
> >   return (char *)(sys_errlist[errnum]);
> > }
> >
> > I checked the corresponding file in VTK5.6 and the source codes are the
> > same, but VTK5.6 runs well in my computer.
> >
> > I don't know what is wrong with it. Can anyone give me some suggestions?
> I
> > will be really appreciate your kind help.
> >
> > Best wishes
> > Long
> > _______________________________________________
> > 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
> >
> >
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111025/3dd945b0/attachment.htm>


More information about the vtkusers mailing list