[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot get otcl to compile



>
> 
>    I have a question about otcl.  I am trying to get ns-2.0 up and running.
>    I have first obtained otcl-0.96 but I cannot get it to install.
> 
>    Does OTcl work with Tcl 7.6?

yes

>    I follow the instructions in the README file
>    to install OTcl-0.96 and it can't seem to find the -ltcl and -ltk librarie
s
>    even though the path is set correctly.  The folowing is the output when
>    "make" is executed.

the problem is that when you install tcl7.5 or tcl7.6 the names
of the libraries have a "76" or "7.6" in them.
>    --------------------------------------------------------------
>    oberon{connors}#45: make
>    rm -f libotcl.so
>    gcc -o owish  -g -O -I. -I/home/dangle/connors/sim-tools/tcl7.6/generic -I
/home/dangle/connors/sim-tools/tk4.2/include -I/usr/openwin/include otkAppInit.
c \
>    -L. -lotcl -L/home/dangle/connors/sim-tools/tk4.2/lib/ -ltk -L/home/dangle
/connors/sim-tools/tcl7.6/lib/ -ltcl -L/usr/openwin/lib -lX11 -ldl \
>    -lsocket -lnsl -lm
>    ld: fatal: libra     ry -ltk: not found
>    ld: fatal: library -ltcl: not found
>    ld: fatal: File processing errors.  No output written to owish
>    make: *** [owish] Error 1

if you just do 'ln -s <wherever your tcl library is> libtcl.a'
and 'ln -s <wherever your tk library is> libtk.a'.  Then try again.
It'll probably work.

- K