[Insight-users] Cannot Locate Build Flags for ITK + VTK

Peter Kwan 7pok at qlink.queensu.ca
Thu, 15 Apr 2004 00:58:06 -0400


Hi,

I'm trying to compile VTK 4.4 then ITK 1.6.0 on Mac OS X 10.3 using ccmake
1.8-3 (all are the tar.gz packages that you can download from the website,
and ccmake is the MacOSX binary install).

I understand that I need to make the following settings using ccmake.

Building VTK =>
VTK_USE_ANSI_STDLIB = ON
But I cannot find this option (evening after [t]oggling) and I haven't been
able to discover if this is because it is 1) unnecessary now, 2) ccmake
can't figure out to add it, or 3) I need to add it manually to
CMakeCache.txt myself, 4) something else entirely...
I've tried adding the line myself to the CMakeCache.txt file and building
VTK--which worked, but of course I'm left wondering if this was the right
thing to do, or if it just seemed to work and will refuse once I add in ITK.

Building ITK =>
USE_VTK = ON
USE_INSTALLED_VTK = OFF
USE_BUILT_VTK = ON
VTK_BINARY_PATH = path/to/VTK/build
But again, I cannot find the USE_VTK option, and thus never get the
opportunity to access the other options.  At this point, I've tried adding
in USE_VTK to the CMakeCache.txt file but didn't see the other options
appear afterwards in ccmake.  Again, I'm wondering if this is the right
thing to do, or not...

I've read through GettingStarted-II.pdf, a couple other tutorials
(Visualizing the Human Body with ITK and VTK from 2002), the ITK FAQ, and
I've searched through the list for answers.  So far, I haven't found
anything that completely answers my question--there is some mention of flags
but no explanation as to why they are not showing up in ccmake or if they
are no longer needed.  I'd like to know for sure exactly what I need to do
or not do, and WHY?

Any suggestions, comments, etc. would be greatly appreciated!

Thanks in advance.
--Peter