You are not logged in.

#1 2003-08-17 23:36:35

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

tk installed, but cannot build tk-app

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

#2 2003-08-17 23:46:36

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: tk installed, but cannot build tk-app

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

#3 2003-08-18 00:29:01

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: tk installed, but cannot build tk-app

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

#4 2003-08-18 17:55:42

hApy
Member
From: Victoria, BC
Registered: 2003-04-13
Posts: 194
Website

Re: tk installed, but cannot build tk-app

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

#5 2003-08-18 18:54:53

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: tk installed, but cannot build tk-app

Well, have a closer look at the Makefile, it's explained in it wink

# 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

#6 2003-08-19 17:08:19

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: tk installed, but cannot build tk-app

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

Board footer

Powered by FluxBB