User talk:MalakaGL: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
mNo edit summary
 
Line 7: Line 7:


We have given many example codes [here http://www.vtk.org/Wiki/VTK/Examples/Cxx].
We have given many example codes [here http://www.vtk.org/Wiki/VTK/Examples/Cxx].
But most of them do not compatible with current version of VTK.
But most of them do not compatible with current version of VTK.
Here is a simple guideline to make those work.
Here is a simple guideline to make those work.


First copy the given .cxx code and CMakeLists.txt to a folder, "src".
First copy the given .cxx code and CMakeLists.txt to a folder, "src".
Then open CMake and give the "src" as the source and give a new folder as the destination.
Then open CMake and give the "src" as the source and give a new folder as the destination.
Configure and generate the visual studio project.
Configure and generate the visual studio project.


Open the .sln file in Visual Studio.
Open the .sln file in Visual Studio.
Right click on the project name and select "set as start up program".
Right click on the project name and select "set as start up program".
Build and debug the program.
Build and debug the program.

Latest revision as of 07:05, 13 November 2014

Welcome to KitwarePublic! We hope you will contribute much and well. You will probably want to read the help pages. Again, welcome and have fun! WikiSysop 10:26, 12 November 2014 (EST)

Using Visual Studio With VTK

We have given many example codes [here http://www.vtk.org/Wiki/VTK/Examples/Cxx].

But most of them do not compatible with current version of VTK.

Here is a simple guideline to make those work.


First copy the given .cxx code and CMakeLists.txt to a folder, "src".

Then open CMake and give the "src" as the source and give a new folder as the destination.

Configure and generate the visual studio project.


Open the .sln file in Visual Studio.

Right click on the project name and select "set as start up program".

Build and debug the program.