[Starkit] itk include not include on linux ?

Jean-Claude Wippler jcw at equi4.com
Fri Jun 24 12:22:30 CEST 2005


snajdr.vaclav at t-online.de wrote:

> some months ago there was a problem with the itcl includes not  
> included in the
> tclkit.
> This week I have downloaded the newest version of tclkit (size  
> 1078434).
>
> Now I have the same problem with itk.
>
> Maybe I use the tclkit incorrectly because the runtime
> (tclkit-linux-x86.upx.bin) is the same file like tclkit (only  
> copied and
> renamed).
>
> Thanks for your answers
>
> ###########################################################
> 1)  with itk include
>
> #!/bin/bash
[...]
> couldn't load library "/data2/mb2/wg-tk/bin/ITS/lib/itk3.3/../ 
> libitk3.3.so":
> no such file or directory

It's hard to tel from your scripts and output whether everything is  
in the right place.

Itk is not part of tclkit, but itcl is.

I suggest trying the following:

1. create tryitk.tcl, containing:
     puts [package require itk]
2. do:
     sdx qwrap tryitk.tcl
     sdx unwrap tryitk.kit
3. copy your itcl3.3 dir with pkgIndex.tcl, itk.tcl, libitk3.3.so as  
follows:
     cp -a my/path/to/itk3.3/. tryitk.vfs/lib/
4. launch the result unwrapped:
     tclkit tryitk.vfs/main.tcl
5. wrap it up:
     sdx wrap tryitk.kit
6. launch the result wrapped:
     ./tryitk.kit

Step 4 is the one to debug if things don't work, i.e. look at  
pkgIndex.tcl - here's an older one in kitten, note how it sets env 
(ITK_LIBRARY):
     http://www.equi4.com/pub/sk/kitten.kit/lib/itk-3.2/pkgIndex.tcl

Make sure ITK_LIBRARY is *not* defined in you env while testing, that  
might well be the explanation for all the problems.

-jcw



More information about the Starkit mailing list