Tuesday, April 17, 2018

Installing itk again notes

My notes as I install itk again. Hopefully, this will make sense to me down the line.  A lot of the links were given to me to use as reference from Peter.
https://itk.org/Wiki/ITK/Complete_Setup

Getting sources
Already downloaded sources for itk and vtk.  Used git to get a clone of vtkdata 
On second thought. I'm going to start from scratch, following the steps from the tutorial.  The first step, get cvs. *side note* Might not need cvs for the itk and vtk download.  For the latest itk version, one should just download it from the website directly.

There is a homebrew formula for cvs! brew install cvs (still need to find a way to remove unbrewed dylibs... at a later date).   Followed the create a repository part of this site, to initiate cvs.

To make things simpler, going to follow the directions and commands listed on the complete setup page.

Checking out insight 00:55:17 - 00:56:20
Getting insight documentation 00:56:20 - 01:03:32
Getting demo applications 01:04:20 - 01:04:34

Checking out vtk 01:05:19 - 01:06:26
Getting VTKData 01:07:14 - 01:08:17

Getting CWWidgets 01:09:01 - 01:09:20


Compiling the sources
Had to get itk copy from the downloaded stuff from the original attempt (cmake -DCMAKE_CXX_FLAGS=-std=c++11 ../Insight) 01:14:13 - 01:20:19
     Didn't have to hit c or g.  Seems like the configure and generating was done automatically.
make 01:26:46 - 04:20:00
Used the wrong command above.  Use ccmake command instead. Turned on BUILD_EXAMPLES and Module_ITKVtkGlue. 12:03:05 - 12:11:44 make 12:12:06 - 12:59:05
After class 4/17 ran make install 20:09:46 - 20:11:36


Vtk used ccmake.  Marked BUILD_EXAMPLES, VTK_WRAP_TCL, Module_vtk_TestingCore, and Module_vtk_TestingRendering on.  I was not able to find VTK_USE_HYBRID. Seems like use hybrid was necessary for older versions. Decided to turn off VTK_WRAP_TCL, since ccmake kept telling me it has been deprecated. 14:46:23 - 12:52:52 A lot of the time, it was waiting for me.
Don't forget to run make!!!
After class 4/17 ran make install 20:11:48 - 20:12:26


From video: itk: BUILD_EXAMPLES, Module_ITKVtkGlue on. vtk: BUILD_EXAMPLES, (build_testing unchecked), (ignore missing modules) Module_vtk_TextingCore, Module_vtk_TestingRendering.

InsightApplications
The cvs version is an old version.  Looks like this just has a bunch of examples, so I'm going to try skipping it for now. Moving on...

KWWidgets
Need to set VTK_WRAP_TCL to on...
Going back to turn that back on. But when that is turned on, vtk doesn't like it. So back to reconfiguring vtk.  15:05:07 - 15:09:42
making vtk again 15:24:46 - 16:00:13

Skipping to running examples

No comments:

Post a Comment