[GRASS5] configure.in Wants testers...tk check
John Huddleston
jhudd at lamar.colostate.edu
Fri Dec 29 08:23:48 EST 2000
Grass list,
I have debugged the problem with the tk check. The configure
script adds the -ltcl8.0 when it should be adding the -ltk8.0 for
the Tk_MainWindow function. In addition, the -lXt library
is added which is not required under cygwin. However, the
X11 library lib directory was not included. So, I have made some
changes to the configure script as follows:
added --with-x-includes=DIR
added --with-x-libs=DIR
for cygwin, this allowed me to add my /usr/x11R6.4 area
modifed the tk check area to change the tcl8.0 to tk8.0
plus I commented out the include conftest.h because there
was no -I flag and it was not needed.
I did not remove the -lXt since Linux or Sun may require that
for the tk library. Cygwin does not need it.
The commit on the file is not going very quickly. If it hangs
I will send the file separately to Markus and he can commit
it for us.
John Huddleston
----- Original Message -----
From: "Eric G . Miller" <egm2 at jps.net>
To: <grass5 at geog.uni-hannover.de>
Cc: "Markus Neteler" <neteler at geog.uni-hannover.de>
Sent: Thursday, December 28, 2000 11:05 PM
Subject: Re: [GRASS5] configure.in Wants testers...
> On Wed, Dec 27, 2000 at 10:06:07AM +0000, Markus Neteler wrote:
> > Hi Eric,
> >
> > hope (you all) had nice christmas days!
> >
> > If you (Eric), allow, another "configure" report:
> >
> > I tested on my Linux laptop:
> > checking Tcl include dirs... -I/usr/include
> > checking Tk include dirs... -I/usr/include
> > checking Tcl/Tk library dirs... -L/usr/lib
> > checking for Tk_MainWindow in -ltk8.3... (cached) no
> > configure: warning: *** Failed to find Tcl/Tk libraries
>
> This seems to happen when the test program doesn't have all the required
> link -l<lib> flags. It seems to vary by system. Most likely it needs
> some of the X11 flags for the test to succeed (-lX11, -lXt, etc...).
> Perhaps you could help me determine which should be added?
>
> Create a small program like:
>
> ------------------------<cut here>----------------------------------
> char *Tk_MainWindow();
>
> int main (void)
> {
> Tk_MainWindow();
> return 0;
> }
> -----------------------<cut here>----------------------------------
>
> Then try compiling it with various options:
>
> $ gcc tktest.c -ltk8.3
>
> $ gcc tktest.c -ltk8.3 -L/usr/X11R6/lib -lXt -lX11
>
> etc...
>
> The test program should *not* include "tk.h", so that the redefinition
> of Tk_MainWindow() will not cause a compilation error. On my system, I
> only need the "-ltk8.3" flag, but I've seen where X libs are needed
> elsewhere to overcome similar problems (like -lGLwM). The program only
> needs to compile to indicate successful linking (it will obviously fail
> to run properly due to wrong/missing arguments to Tk_MainWindow()).
>
> Also, if you changed some options to configure, you might need to delete
> the "config.cache" file so the test is actually performed (it won't be
> if the cache already has success/failure stored).
>
> --
> Eric G. Miller <egm2 at jps.net>
>
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list