[Insight-users] Problems with Application [Insight Segmentation Editor Tool]

Joshua Cates cates at sci . utah . edu
Thu, 8 May 2003 10:04:04 -0600 (MDT)


Hi p3rdigao,

Double check that you have the directory VTK/Wrapping/Tcl/vtkinteraction
in your VTK source.  The Main.tcl script is trying to find this package.  
The WST.conf file in InsightApplications/SegmentationEditor/Scripts that
is generated the first time you run the application should set a
"vtk_path" variable pointing to your VTK source.  You can edit WST.conf
directly.

Worst case, edit your Main.tcl file and add a line

 lappend auto_path "/path/to/your/VTK/source/directory"



You might also try the brand new SegmentationEditorFltkGui code just
checked in a few days ago.  This code is compiled using VTK and Fltk and
avoids the Tcl problems.  It is running fine on Linux, but there may yet
be issues with windows, so bear with us as we work these out.  Let me know
if you encounter any problems.

Hope this helps,

Josh.

______________________________
 Josh Cates			
 School of Computer Science	
 University of Utah
 Email: cates@sci.utah.edu
 Phone: (801) 587-7697
 URL:   http://www.sci.utah.edu/~cates






>Hi...
>

>Ok in respect with the directory....where the wstitk.exe is generated it
>is here

>The WSTITK is
>c:\InsightApplications-1.2.0-Binary\SegmentationEditor\Wrapping\Tcl\Rele
>ase\

>and not at insight_build\bin\

>to resolve that i had
>c:\InsightApplications-1.2.0-Binary\SegmentationEditor\Wrapping\Tcl\Rele
>ase\ to system variable PATH..


>SO...

>which gives the following error in a pop-up windows

    canīt find package vtkinteration while executing
    "package require vtkinteraction"
         (file "./PrepocessorModule.tcl" line 18)
    invoked from within "source "./$m""
    ("foreach" body line 3)
        invoked from within
        "foreach m $Globals(modules names){
          append m "Module.tcl""
        source "./$m"
   }"
    (file "main.tcl" line 35)

>BUT the vtkiteration is at
>C:\Vtk42\wrapping\tcl\vtkinteration

>How do i resolve this i think that after that...my problem is solved i
>hope!!






On Thu, 8 May 2003, Luis Ibanez wrote:

> Hi P3rdigao,
> 
> 
> 
> ------------------
> p3rdigao wrote:
> > 
> > Hi once again..
> > 
> > Tell do I need put the flag ITK_WRAP_TCL ON on CMAKE?
> > 
> 
> 
> 
> No, you don't need to Tcl wrap ITK in order to use the
> segmentation editor.
> 
> What this application is doing, is to encapsulate IKTK
> filters as VTK filters and then wrap them on Tcl.  So,
> what you need to make sure is that your VTK has Tcl
> wrapping enabled.
> 
> 
> 
> >
> > To run the SegmentationEditor do I need CABLE? 
> > 
> 
> 
> 
> You don't need CABLE for this application. CABLE is
> needed only for Tcl wrapping ITK, not for Tcl wrapping
> VTK.
> 
> 
> 
> 
> > I still do not understand the following instruction....in words how I
> > give that instruction in the prompt? (this is from the README.TXT) of
> > SegmentationEditor (insightApplications)
> > 
> > "cd INSIGHT_SOURCE/Applications/SegmentationEditor/Scripts      (AAAA)
> >   INSIGHT_BUILD/bin/WSTITK PreprocessorModule.tcl "
> > 
> > I dont understand...its not the meaning...its how i give the instruction
> > in the prompt....
> > 
> 
> 
> Well,
> you open a MS-DOS command window and you type the command...
> 
> Of course you replace "INSIGHT_SOURCE/Applications" with the
> directory where you actually have "InsightApplications", and
> you replace "INSISGHT_BUILD" with the binary directory where
> your built the InsightApplications.
> 
> It may be even better if you have Cygwin installed, since in this
> case you can open a shell and type the command in there.
> 
> 
> 
> Regards,
> 
> 
>    Luis
> 
> 
> ---------------------
> > 1) The WSTITK is c:\InsightApplications-1.2.0B(the B stands for the
> > binary dir)\SegmentationEditor\Wrapping\Tcl\Release\
> > 
> > 2) Then I copy WSTITK to c:\vtk42-bin\bin
> > 
> > 3) The Main.Tcl is at c:\InsightApplications-1.2.0(the source
> > dir)\SegmentationEditor\Scripts
> > 
> > so, because i didnīt understand the (AAAA) instruction I tried something
> > like this:
> > 
> > c:\vtk42-bin\bin> WSTITK
> > c:\InsightApplications-1.2.0\SegmentationEditor\Scripts\Main.tcl  (I
> > think that this is not what you want with AAAA instruction)
> > 
> > which gives the following error in a pop-up windows
> > 
> >    canīt find package vtkinteration while executing 
> >    "package require vtkinteraction"
> >         (file "./PrepocessorModule.tcl" line 18)
> >    invoked from within "source "./$m""
> >    ("foreach" body line 3)
> > 	invoked from within
> > 	"foreach m $Globals(modules names){
> > 	  append m "Module.tcl""
> > 	source "./$m"
> >   }"
> >    (file "main.tcl" line 35)
> >  
> > Thanks for the help that you already give me!
> > Thanks a lot.
> > I hope that you can also help me with this problem.
> > Best regards.
> > Once Again Thanks!
> > 
> > P3rdigao
> > 
> > 
> > No I am using exactly what you recomend without any CVS.
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: insight-users-admin@public.kitware.com
> > [mailto:insight-users-admin@public.kitware.com] On Behalf Of Luis Ibanez
> > Sent: quarta-feira, 30 de Abril de 2003 13:38
> > To: p3rdigao
> > Cc: Insight-users@public.kitware.com
> > Subject: Re: [Insight-users] Problems with Application [Insight
> > Segmentation Editor Tool]
> > 
> > 
> > Hi P3rdigao,
> > 
> > You may be experiencing the effect of mixing
> > incompatible versions of libraries.
> > 
> > The versions to use together are:
> > 
> > 1) ITK 1.2
> > 2) VTK 4.2
> > 3) FLTK 1.1.3 (opcional)
> > 4) CMake 1.6.6
> > 
> > 
> > It looks like your are using a CVS version
> > of VTK...
> > 
> > You should not have to change anything in
> > the VTK source code in order to build the
> > libraries.
> > 
> > 
> > 
> > Regards
> > 
> > 
> >     Luis
> > 
> > 
> > 
> > ------------------
> > 
> > 
> > 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>