[vtkusers] Error Compiling Cone4.cxx without Cmakelist

Cally K kalpana0611 at gmail.com
Sat Mar 29 12:32:10 EDT 2008


Dear vtk users

Hi, I have been using CMakelist to run and test the vtk examples. I am
sure there is a way to compile using g++ in linux and without having
to write the Cmakelist thing..I have set my path to vtkbin and built
my vtk using the shared library on.  I think I have to include some
other stuff as well, am using VTK 5.0.3 on linux, could someone guide
me on how to compile and run a simple Cone using the g++ thingy.
thanks

This was the error when I try running --g++ Cone4.cxx

Cone4.cxx:23:27: error: vtkConeSource.h: No such file or directory
Cone4.cxx:24:31: error: vtkPolyDataMapper.h: No such file or directory
Cone4.cxx:25:29: error: vtkRenderWindow.h: No such file or directory
Cone4.cxx:26:23: error: vtkCamera.h: No such file or directory
Cone4.cxx:27:22: error: vtkActor.h: No such file or directory
Cone4.cxx:28:25: error: vtkRenderer.h: No such file or directory
Cone4.cxx:29:25: error: vtkProperty.h: No such file or directory
Cone4.cxx: In function 'int main()':
Cone4.cxx:39: error: 'vtkConeSource' was not declared in this scope
Cone4.cxx:39: error: 'cone' was not declared in this scope
Cone4.cxx:39: error: 'vtkConeSource' is not a class or namespace
Cone4.cxx:51: error: 'vtkPolyDataMapper' was not declared in this scope
Cone4.cxx:51: error: 'coneMapper' was not declared in this scope
Cone4.cxx:51: error: 'vtkPolyDataMapper' is not a class or namespace
Cone4.cxx:59: error: 'vtkActor' was not declared in this scope
Cone4.cxx:59: error: 'coneActor' was not declared in this scope
Cone4.cxx:59: error: 'vtkActor' is not a class or namespace
Cone4.cxx:70: error: 'vtkProperty' was not declared in this scope
Cone4.cxx:70: error: 'property' was not declared in this scope
Cone4.cxx:70: error: 'vtkProperty' is not a class or namespace
Cone4.cxx:82: error: 'coneActor2' was not declared in this scope
Cone4.cxx:82: error: 'vtkActor' is not a class or namespace
Cone4.cxx:94: error: 'vtkRenderer' was not declared in this scope
Cone4.cxx:94: error: 'ren1' was not declared in this scope
Cone4.cxx:94: error: 'vtkRenderer' is not a class or namespace
Cone4.cxx:104: error: 'vtkRenderWindow' was not declared in this scope
Cone4.cxx:104: error: 'renWin' was not declared in this scope
Cone4.cxx:104: error: 'vtkRenderWindow' is not a class or namespace



More information about the vtkusers mailing list