[vtkusers] This error

David Cole david.cole at kitware.com
Fri Jan 18 07:49:27 EST 2008


The most likely explanation is that you have another directory in your PATH
environment variable that contains VTK dlls. (Different than the ones you
have in your build directory.)

Remove that other directory from the PATH and it should work fine.

HTH,
David

On 1/17/08, Sameer Dhote <samir.dhote at gmail.com> wrote:
>
> Hi all,
> i have got this error while trying to build a vtk code.. The code
> works builds fine but does not execute but results in the following
> error
>
> The code is to display a glyph
>
>
> /*********************************************Code*******************************************************
>         vtkSphereSource *sphere = vtkSphereSource::New();
>         sphere->SetRadius(1);
>
>         vtkPolyDataMapper *mapper1 = vtkPolyDataMapper::New();
>         mapper1->SetInputConnection(sphere->GetOutputPort());
>
>         vtkActor *actor1 = vtkActor::New();
>         actor1->SetMapper(mapper1);
>
>
>         vtkConeSource *cone = vtkConeSource::New();
>         cone->SetRadius(1);
>         cone->SetHeight(1);
>         cone->SetResolution(20);
>
>         vtkGlyph3D *glyph = vtkGlyph3D::New();
>         glyph->SetInputConnection(sphere->GetOutputPort());
>         glyph->SetSource(cone->GetOutput());
>         glyph->SetVectorModeToUseNormal();
>         glyph->SetScaleModeToScaleByVector();
>         glyph->SetScaleFactor(0.5);
>
>         vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();
>         mapper->SetInputConnection(glyph->GetOutputPort());
>
>         vtkActor *actor = vtkActor::New();
>         actor->SetMapper(mapper);
>
>         vtkRenderer *ren1 = vtkRenderer::New();
>         ren1->AddActor(actor);
>         ren1->AddActor(actor1);
>         ren1->SetBackground(0.6,0.8,0.6);
>         ren1->SetViewport(0.0,0.0,0.5,1.0);
>
>
>         vtkRenderWindow *rw1 = vtkRenderWindow::New();
>         rw1->AddRenderer(ren1);
>         rw1->SetSize(600,600);
>
>
>         vtkRenderWindowInteractor *iren =
> vtkRenderWindowInteractor::New();
>         iren->SetRenderWindow(rw1);
>
>
>         vtkInteractorStyleTrackballCamera *style =
>         vtkInteractorStyleTrackballCamera::New();
>         iren->SetInteractorStyle(style);
>
>         iren->Initialize();
>         iren->Start();
>
>         sphere->Delete();
>         cone->Delete();
>         glyph->Delete();
>         mapper->Delete();
>         actor->Delete();
>         ren1->Delete();
>         rw1->Delete();
>         iren->Delete();
>         style->Delete();
>
>   return 0;
>
>
>
> /*************************************************************************Error******************************************************
>
> "The procedure entry
> point?GetNextItemAsObject at vtkCollection@@QAEPVvtkObject@@AAPAX at Z could
> not be found in the dynamic link library vtkCommon.dll"
>
> What could be the possible reason behind this??
>
> Regards
> Sameer
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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/20080118/7917e3ef/attachment.htm>


More information about the vtkusers mailing list