[vtkusers] Compilation errors: cannot convert from 'int' to 'vtkGeoImageNode *'
Jeff Baumes
jeff.baumes at kitware.com
Fri Apr 30 16:31:51 EDT 2010
This is a VS 2010 issue. VTK 5.4.2 (and the latest VTK from the
repository) does not yet officially support VS 2010.
The following commit from a few months ago probably addresses your problem:
commit 82164219d7e9df310e5b8a4b59162b572e364509
Author: Dave Partyka <dave.partyka at kitware.com>
Date: Tue Jan 26 17:28:19 2010 -0500
COMP: VS10 complains if you try to initialize a pair defined by a
point and an int with NULL.
diff --git a/Geovis/vtkGeoAlignedImageRepresentation.cxx
b/Geovis/vtkGeoAlignedImageRepresentation.cxx
index 3c9515b..40eb858 100644
--- a/Geovis/vtkGeoAlignedImageRepresentation.cxx
+++ b/Geovis/vtkGeoAlignedImageRepresentation.cxx
@@ -58,7 +58,7 @@ vtkGeoAlignedImageRepresentationFind(vtkGeoSource*
source, vtkGeoImageNode* p, d
ub[1] >= bounds[3])
{
nodeList->SendToFront(p);
- vtksys_stl::pair<vtkGeoImageNode*, double> minDist(0, VTK_DOUBLE_MAX);
+ vtksys_stl::pair<vtkGeoImageNode*, double>
minDist(static_cast<vtkGeoImageNode *>(NULL), VTK_DOUBLE_MAX);
vtkGeoImageNode* child = p->GetChild(0);
vtkCollection* coll = NULL;
Jeff
On Sun, Apr 25, 2010 at 1:57 AM, Patrick Cheng
<cheng at isis.georgetown.edu> wrote:
> Hi VTK Developers
>
> Environment:
> VTK 5.42 / CMake 2.8 / VS 2010 / Win32
>
> I submitted an experimental build here:
> http://www.cdash.org/CDash/viewBuildError.php?buildid=594319
>
> Thank you,
>
> Patrick
> _______________________________________________
> 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
>
--
Jeff Baumes, Ph.D.
Technical Lead, Kitware Inc.
(518) 881-4932
More information about the vtkusers
mailing list