[Insight-users] Several questions when compile and run ITK/VTK/TCL

Luis Ibanez luis.ibanez at kitware.com
Fri, 30 Apr 2004 20:46:40 -0400


Hi Yang,

Thanks for your detailed email,

In your TCLLIBPATH I see a path to "VTK" wrapping
but don't see any path to "ITK" wrapping.

If this is not a typo, you may simply have to add
the path to ITK wrapping.



Please look at the file

    Insight/Wrapping/CSwig/README




Regards,


    Luis



---------------
Yang Wang wrote:

> Dear Luis,
> 
> Thanks for you answer.
> 
> I have done a search for files:
>        ITKCommonTcl.dll
>         ITKNumericsTcl.dll
>         SwigRuntimeTcl.dll
> They are all in the directory D:\ITKbin\bin\debug, which seems to be right.
> However, the error message is still there.
> 
> Here are my manually added Environment Variables concerning Tcl/tk/vtk/itk.
> 
> In "System variables" section:
> Variable                   Value
> TCLDIR               D:\tcl8.4.6
> TCLLIBPATH      D:/VTKbin/Wrapping/Tcl/Debug
> Path                      
> D:\tcl8.4.6;D:\tcl8.4.6\bin;D:\tk8.4.6;D:\CMake\bin;D:\VTKbin\bin\debug;D:\ITKbin\bin\debug 
> 
> 
> I wonder if this is clear for you to see where goes wrong?
> Thank you.
> 
> Yours,
> Casper  
> luis.ibanez at kitware.com wrote:
> 
>>
>> Hi Casper,
>>
>>
>> 1) VTK_USE_ANSI_STDLIB
>>
>>    Is only required with Visual Studio 6.0.
>>    Since you are configuring for .NET, CMake is smart
>>    enough for not showing you this options, given that
>>    it is not applicable to your case.
>>
>>
>> 2) When you built ITK, did you enabled TCL wrapping ?
>>    Did you verified that your built produced the
>>    libraries:
>>
>>      ITKCommonTcl.dll
>>      ITKNumericsTcl.dll
>>      SwigRuntimeTcl.dll
>>
>>    They should be in the /bin/Debug sub-directory of
>>    the binary directory where you built ITK.
>>
>>
>>
>> 3)  Yes, the CannyEdgeDetection VTKITK example was
>>     added after the release of ITK 1.6
>>     You will find many other differences in wrapping
>>     related issues between ITK 1.6 and the CVS trunk.
>>     You probably want to work with the CVS version.
>>     FYI: We are scheduling ITK 1.8 by August this year.
>>
>>
>>
>> 4)  Nope, there are no more VTK + ITK examples.
>>     If Tcl users out there want to contribute
>>     small examples on the things they have done,
>>     we will be happy to add them to the
>>     Examples/Visualization directory.
>>
>>
>>
>> Regards,
>>
>>
>>
>>    Luis
>>
>>
>>
>> ----------------
>> Yang Wang wrote:
>>
>>> Dear All,
>>>
>>> I have several questions when compile and build 
>>> Tcl/Tk/Vtk/Itk/CSWig/ItkApplication.
>>>
>>> Note:     Tcl/Tk are from source distribution of version 8.4.6
>>>              Vtk is from source distribution 4.2
>>>
>>> (1) When using Cmake for vtk, I simply can not find the field:
>>>      "VTK_USE_ANSI_STDLIB", in the Advanced Values, don't know why?
>>>
>>> BTW, I am using "Microsoft Visual C++ .NET   69462-270-0000007-18381"
>>> Then I continue to built with CSWig, followed by Itk, finally 
>>> ITKapplication. The
>>> built processes are successful, although some warnings exists.
>>>
>>> (2) Then I try to run the example 
>>> "ITK\examples\Registration\ImageRegistration3.tcl "
>>>    from wish84 shell by typing "source ImageRegistration3.tcl", it 
>>> says "can't find package InsightToolkit".
>>>    Don't know why this happens?
>>>
>>> (3) I use the Itk as well as ItkApplication soucefiles in .zip format 
>>> from the CD-ROM comes with
>>>    the book "ITK Software Guide", however, in the ITK\examples 
>>> directory, I did not find the
>>>    file "CannyEdgeDetectionImageFilterConnectVTKITK.tcl", is it 
>>> because this distribtuion version
>>>    does not have this file yet?
>>>
>>> (4) Besides "CannyEdgeDetectionImageFilterConnectVTKITK.tcl", are 
>>> there any more examples that
>>>    use both ITK, VTK together, in the .tcl format?
>>>
>>> Thanks in advance for any help!
>>>
>>> Yours,
>>> Casper
>>>
>>>
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>
>>
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>