[Insight-users] Re: few questions with itk and vtk
Luis Ibanez
luis . ibanez at kitware . com
Thu, 20 Nov 2003 16:04:57 -0500
Hi Sharad,
1) You can choose any configuration (release,debug,RelWithDebugInfo),
but you *must* use the same for *all* the libraries.
2) Don't use the precompiled binaries of VTK 4.2.
You must build ITK yourself and enable ANSI STDLIB compatibility.
You will find instructions about this in the tutorial documents
http://www . itk . org/HTML/Tutorials . htm
In particular: "Getting Started with ITK and VTK"
http://www . itk . org/CourseWare/Training/GettingStarted-II . pdf
3) FLTK and Tcl are GUI options. You could also go with Qt, MFC
wxWindows or Java for making your GUI. Having a GUI support
is nice if you are planning to use your program more than once :-)
We have found FLTK to be a nice compromise, but this opinion
is not necessarily shared among all developers.
4) About the error in your build:
Did you moved the source files of ITK after you build the binaries ?
It seems that a header is not being found, and the typical reason
is when people move the source tree after having built the toolkit.
If you continue experiencing any problems, please post your
CMakeCache.txt file to the ITK users list.
Regards,
Luis
----------------------------------
Sharad Kumar Somanchi wrote:
> Hi luis
> got few more questions for you.
>
> 1. i always am confused which configurations to build the itk or vtk files
> with ?
> i.e with release or RelWithDebInfo or debug
>
> 2.i downloaded the vtk source code using cvs and i also have downloaded
> the precompiled binaries before for vtk4.2 now i am confused when
> configuring the cmkake for vtk and itk. do i need the precompiled binaries
> atall or i can just use the source code for vtk.
>
> 3.do i need fltk and tcl atall as you know my problem is to stack series
> or 2D images and view them as a 3D image
>
> 4.for building the example itkImageSeriesIOTest i copied the .cxx file in
> a new folder and wrote the cmakelists as follwing
>
> # This project is designed to be built outside the Insight source tree.
> PROJECT(itkImageSeriesIOTest)
>
> # Find ITK.
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
> INCLUDE(${ITK_USE_FILE})
> ELSE(ITK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build without ITK. Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(itkImageSeriesIOTest itkImageSeriesIOTest.cxx )
>
> TARGET_LINK_LIBRARIES(itkImageSeriesIOTest VXLNumerics ITKCommon ITKIO
> ITKMetaIO itkpng itkzlib)
>
> and when i build the example it gave the follwing error
>
> Compiling...
> itkImageSeriesIOTest.cxx
> C:\itk\New Folder2\itkImageSeriesIOTest.cxx(20) : fatal error C1083:
> Cannot open include file: 'itkNumericSeriesFileIterator.h': No such file
> or directory
> Error executing cl.exe.
>
> ALL_BUILD - 1 error(s), 0 warning(s)
>
> what could be the possible error
> thanks for your patience luis
>
> regards
> sharad
>