[Insight-users] help about a simple vtk program,
how to compile this program?
陵 邱
oliveqiu2004 at yahoo.com.cn
Sat Jun 11 10:44:45 EDT 2005
how to compile a vtk program?
i just begin to learn vtk.my produce maybe is not right,please help.
my produce is that:
1)put *.cxx(vtk cxx file) and a CMakeList.txt into a new folder;
2)apply CMake on the new folder as a source ,and make another new
folder to locate new *.dsw file .
3)APPLY VC6.0 TO COMpile the *.dsw file ;
my question is that :
1)how to write the CMakeList.txt ,(i only know how to write in itk);
2)my program is :
#include "vtkRenderer.h"
main()
{
vtkRenderMaster rm;
vtkRenderWindow 3 win =rm.MakeRenderWindow();
vtkRender 3 ren =win - >MakeRenderer();
vtkRenderWindowInteractor 3 iren =win->MakeRenderWindowInteractor();
vtkConeSource 3 cone = new vtkConeSource ;
cone->SetResolution(8);
vtkPolyMapper 3 mapper = new vtkPolyMapper ;
mapper->SetInput (cone->GetOutput ()) ;
vtkActor coneActor = new vtkActor ;
coneActor->SetMapper (mapper) ;
ren->AddActors(coneActor) ;
win->Render() ;
iren->Start() ;
}
compile error is that :not found vtk.h file ,anyone know it ?
---------------------------------
DO YOU YAHOO!?
雅虎免费G邮箱-中国最强免费防毒反垃圾超大邮箱
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050611/0a334d48/attachment.htm
More information about the Insight-users
mailing list