[GRASS-user] Grass6.2\Cygwin

Here is some additional info:

in v.in.ogr, make generates the following errors:

gcc -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include -g -O2 -I/usr/local/include -DPACKAGE=\""grassmods"\" -I/usr/local/include -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include \
    -o OBJ.i686-pc-cygwin/main.o -c main.c
main.c: In function `main':
main.c:638: error: `OFTDate' undeclared (first use in this function)
main.c:638: error: (Each undeclared identifier is reported only once
main.c:638: error: for each function it appears in.)
make: *** [OBJ.i686-pc-cygwin/main.o] Error 1

in v.digit, make generates errors of the type:

/usr/local/lib/libtk.a(tkWindow.o):tkWindow.c:(.text+0x1092): undefined reference to `_XDestroyWindow'

Is the compiler expecting a set of directories /usr/local/lib/tk and /tcl? Right now what I have are /tk8.4 and /tcl8.4. Assuming I should be using these newer libraries, how do I force the compiler to use for these?

./configure appears to have found them okay:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.4
checking Tk version... 8.4
checking for location of Tcl/Tk library...
checking for Tcl_Init in -ltcl... yes
checking for Tk_MainWindow in -ltk... yes

Thanks.

Martin

Martin du Saire wrote:

Here is some additional info:

in v.in.ogr, make generates the following errors:

gcc -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include -g
-O2 -I/usr/local/include -DPACKAGE=\""grassmods"\"
-I/usr/local/include -I/usr/src/grass-6.2.0/dist.i686-pc-cygwin/include \
    -o OBJ.i686-pc-cygwin/main.o -c main.c
main.c: In function `main':
main.c:638: error: `OFTDate' undeclared (first use in this function)
main.c:638: error: (Each undeclared identifier is reported only once
main.c:638: error: for each function it appears in.)
make: *** [OBJ.i686-pc-cygwin/main.o] Error 1

That suggests an unsupported version of GDAL. OFTDate is present in
later versions, and the use is conditionalised with:

#if GDAL_VERSION_NUM >= 1320
    } else if( Ogr_ftype == OFTDate ) {
        sprintf (buf, ", %s date", Ogr_fieldname );
#endif

Either it's checking against the wrong version number, or you have
multiple, conflicting versions of GDAL installed.

in v.digit, make generates errors of the type:

/usr/local/lib/libtk.a(tkWindow.o):tkWindow.c:(.text+0x1092):
undefined reference to `_XDestroyWindow'

That implies that the X libraries aren't being added to the setting of
TCLTKLIBS in include/Make/Platform.make.

Do you have multiple versions of Tcl/Tk installed?

Is the compiler expecting a set of directories /usr/local/lib/tk and
/tcl? Right now what I have are /tk8.4 and /tcl8.4. Assuming I
should be using these newer libraries, how do I force the compiler to
use for these?

Those directories contain Tcl/Tk code which is used by the Tcl/Tk
libraries. The compiler doesn't need to find them; the actual Tcl and
Tk libraries should be in /usr/local/lib.

--
Glynn Clements <glynn@gclements.plus.com>