[vtkusers] problem with VTK for windows, VTK and GTK

Hugo LECLERC hugo_lec at club-internet.fr
Wed Apr 4 11:46:30 EDT 2001


> 
hello,



I am trying to install vtk with the programm (vtk31core.exe and vtk31cpp.exe) 
for windows NT.

I use Metrowerks compiler, I create a executable with a exemple (cone.cxx for 
example), I have no error link. But, when I run the new programm test, I have 
errors with the dll.
This errors appear when I use the fonction :



/*cone.cxx*:

#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkConeSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "SaveImage.h"
void main( int argc, char *argv[] )
{
char a;
// create a rendering window and renderer
  vtkRenderer *ren = vtkRenderer::New();
  vtkRenderWindow *renWindow = vtkRenderWindow::New();
    renWindow->AddRenderer(ren);
  renWindow->SetSize( 300, 300 );<-----------error with the vtkdll.dll
  // create an actor and give it cone geometry
  vtkConeSource *cone = vtkConeSource::New();
    cone->SetResolution(8);
 vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
    coneMapper->SetInput(cone->GetOutput());
  vtkActor *coneActor = vtkActor::New();
    coneActor->SetMapper(coneMapper);
  // assign our actor to the renderer
  ren->AddActor(coneActor);
  // draw the resulting scen
  renWindow->Render();
 SAVEIMAGE( renWindow );
  // loop until key is pressed
  cout << "Press any key followed by <Enter> to exit>> ";
  cin >> a;
  // Clean up
 ren->Delete();
  renWindow->Delete();
  cone->Delete();
  coneMapper->Delete();
  coneActor->Delete();}

*/



and generally the errors appears when i want to update a command for example 
: (color, size, render , etc..)

/////////////////////////////////////////////////////////////////////


I would like to write an application using VTK (the visualization toolkit
-- marching cubes, etc) and use the GTK for windows.
so, I search a c++ programm to make a widget to integrate VTK in GTK WIN 32 

Thanks,

HUGO
 




More information about the vtkusers mailing list