You are not logged in.
tried to build http://zakros.ucsd.edu/~arobert/hanzim.html
[...]
cc -o hanzim hanwin.o hanzim.o hinit.o hutil.o -L /usr/X11/lib -L /usr/lib -ltk -ltcl -lX11 -lm -ldl -s
/usr/bin/ld: cannot find -ltk
collect2: ld returned 1 exit status
make: *** [hanzim] Error 1
==> Build Failed. Aborting...
where are these libs? do i need something else than the "tk"-package? (?libtk?) please help
The impossible missions are the only ones which succeed.
Offline
withot seeing the source my guess is that somewhere in the configure script or makefille they have set the path to look for the tk libraries and arch does not use this path. take a look at the makefile or configure scripts for answers or if you knw the path to the tk libraries perhaps there is a configure option you can use to configure the path to them.
AKA uknowme
I am not your friend
Offline
here the config-part from Makefile --- there is no configure
# System type
OS=UNIX
#OS=WINDOWS
# location of Tcl and Tk libraries
LIBTCLDIR = -L /usr/lib
# location of x library
LIBXDIR = -L /usr/X11/lib
# you might need to change "libtcl" and "libtk" to "libtcl8.x" and "libtk8.x"
LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk -ltcl -lX11 -lm -ldl
INSTALL = install
RM = rm -f
CC = cc
DEFINES = -D$(OS) -DLIBDIR="$(LIBDIR)"
CFLAGS = -O2 $(DEFINES)
#CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES)
LFLAGS = $(LIBS) -s
The impossible missions are the only ones which succeed.
Offline
do a "locate libtk" and "locate libtcl"
make sure the
LIBTCLDIR
is pointing to the right place, and make sure that the
LIBS (...) -ltk -ltcl
is right. basically the -lLIBNAME should match your "libtk" that you find on your system, minus the lib prefix.
Hapy.
Offline
Well, have a closer look at the Makefile, it's explained in it
# you might need to change "libtcl" and "libtk" to "libtcl8.x" and "libtk8.x"
Indeed:
[orelien@pikachu orelien]$ pacman -Ql tk tcl | grep '.so$'
tk /usr/lib/libtk8.4.so
tcl /usr/lib/libtcl8.4.so
You have to put "-ltk8.4 -ltcl8.4" in LIBS instead of "-ltk -ltcl".
Offline
thanx for this ... i had think, that there were links to the libs, but as i can see now, they are not
The impossible missions are the only ones which succeed.
Offline