[Insight-users] Re: Questions in identified pieces.Still me.
Luis Ibanez
luis.ibanez at kitware.com
Tue Mar 28 13:52:32 EST 2006
Hi 方元元
1. Is the following text:
"itkGradientMagnitudeImageFilter is not a member of itk"
the exact error message that you get ?
if so, then the problem is that you typed
typedef itkGradientMagnituedImageFilter
instead of
typedef itk::GradientMagnitudeImageFilter
2. When you build VTK for Wrapping, you should use the Release
compilation option.
Do you really need Tcl wrapping ?
if no, I would suggest you to disable the VTK wrapping.
3. When you say that your project with VTK doesn't work now
that you turned SHARED libs On, you are probably not putting
the DLLs in your PATH. You will find instruction on how to
add your dlls to your PATH in the ITK FAQ.
http://www.itk.org/Wiki/ITK_FAQ#How_to_set_Windows_DLL.27s_on_the_Path
Regards,
Luis
----------------
方元元 wrote:
> Luis,
> I think it is better to write directly to you.I exactly followed the
> "Getting started " tuturials.Because you told me to in your 2rd letter.
> 1. I installed ITK as "Getting started I " taught.And build ITK in Debug
> option.(if
> choose Release option,itk examples cannot work)
> a. "Helloworld " works well.
> b. And the examples in directory "\Examples\DataRepresentation\Image"
> can work
> well either.
> c. But the "myProject" in "Getting started I" cannot work .
> The error is "itkGradientMagnitudeImageFilter is not a member of
> itk" ,but there is
> the file "itkGradientMagnitudeImageFilter.h" and
> "itkGradientMagnitudeImageFilter.txx"in the \Code\Basicfilters.
> So the qustion is that the project can load itk libs ,because
> "Helloworld"
> works,but why "myPorject" in the "Getting started I" cannot work?
>
> 2.Then I installed VTK as "Getting started II " taught.
> In your last letter,you said "you *MUST* build both libraries with the
> *EXACT*
> same compilation options." ,so I choose Debug to build VTK.
> a.The cxx examples in /Examples can work,but tcl examples cannot
> work. (I choose
> VTK_WARP_TCL "ON")
> b.The "myProject" in "Getting started II " cannot work.
> The error is "cannot open include file itkImageToVTKImageFilter.h"
> ,and I did not
> find the file in itk source directory I downloaded from the
> internet. so I think
> this problem can be ingnored temporarily.
> c. The project I wrote myself and use VTK functions can not work
> now. When I
> turn back to the built vtkbin when the configuration is with
> "BUILD_Shared_Libs"
> ON ,it can work. So the problem is the dll. How can I let my
> project work without
> building vtk dlls?
> So the questions are:
> . why tcl examples cannot work?
> . whether to disable "BUILD_Shared_Libs" which leads to my project not
> work,or
> enable it which is different with what it taught me in "Getting started
> II "?And
> how can I let my project work without building vtk dlls?
>
> Thank you very much!
>
> P.S: the itk version I use is 2.4.0
> the vtk version I use is 4.4
> Now I change the compiler to vs.net 2003
>
> Regards,
>
> Vivian
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
> 多 达 1.1 亿 中 国 人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得 280
> 兆 超 大 网 盘 <http://www.126.com/help/126fab.htm>
More information about the Insight-users
mailing list