This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: [PATCH/itcl] Fix itkConfig.sh
Tom Tromey wrote:
Unfortunately now it won't start:
opsy. ./gdb
./gdb: error while loading shared libraries: libitcl3.3.so: cannot open shared object file: No such file or directory
Yeah, you're going to need to add those to LD_LIBRARY_PATH... Or maybe I
could add something to gdbtk_init to do that for us? I guess I'll get to
that when I'm "finished" with ripping it out.
FWIW, I do not plan to use the in-tree tcl, tk, and itcl anymore. Only
the system-supplied ones. I (will) consider building insight with
src/tcl, src/tk, and src/itcl deprecated. Hopefully, in a few hours. :-)
The shared libraries are installed in install/lib/itk3.3 and
install/lib/itcl3.3. I think just install/lib would be preferable.
This is where the upstream sources put them since Itcl and Itk are now
using the TEA. I am hesitant (but not unwilling) to change this if there
is need.
Also, it seems to me that the test suite ought to set LD_LIBRARY_PATH
somewhere. I didn't see anything for this; without it, 'make check'
fails a lot.
Ugh. I didn't even consider that. Hacking gdbtk_init for LD_LIBRARY_PATH
sounds more and more like a better idea: it kills two birds with one stone.
Is there some other way I ought to be doing this? Like, maybe I
should just install the system itcl... ?
Well, for my sanity, I would recommend that you switch to installing
system tcl, tk, and itcl when I commit the final changes. It'll mean
less work for me! :-P
Won't be long now...
Keith