[GRASS-user] GRASS 6.2 RC2 - Compile with Python Problem

A B pytopo at gmail.com
Mon Oct 9 01:34:47 EDT 2006


I would really like to try the new python_grass module but I cannot
seem to get it to compile.

I compiled GRASS 6.2 RC2 for CYGWIN

My configure options were:
--with-python --with-postgres --with-gdal

When I run make from within the swig/python directory I get:
ld: /cygdrive/c/pkg/downloads/grass-6.2.0RC2/dist.i686-pc-cgwin/lib/libgrass_D.so:
No such file: No such file or directory
make: *** [python_grass6.so] Error 1

The directory /cygdrive/c/pkg/downloads/grass-6.2.0RC2/dist.i686-pc-cgwin/lib
only has ".dll" files and no ".so" files.

So I edited the make files and changed the ".so" to ".dll" did a "make clean"
then a "make" within the swig/python directory again.  Make seemed to
run more but when it got to the last step where the
"_python_grass6.dll" gets created, I got a bunch of "undefined
reference" errors.

drive/c/pkg/downloads/grass-6.2.0RC2/dist.i686-pc-cygwin/lib/libgrass_vect.dll
python_grass6_wrap.o -o _python_grass6.dll

python_grass6_wrap.o:python_grass6_wrap.c:(.text+0xae): undefined
reference to `strlen'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x13e): undefined reference to
`strlen'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x1ef): undefined reference to
`strcmp'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x4df): undefined reference to
`strcmp'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x793): undefined reference to
`strlen'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x7c4): undefined reference to
`strcpy'
. . . . .

and the "undefined reference" errors continue on for quite some time.
The "_python_grass6.dll" file is produced but it does not appear to
work.

The only other errors I see are in the error.log file.

GRASS GIS compilation log
-------------------------
Started compilation: Sat Oct  7 09:17:40 CST 2006
--
Errors in:
/cygdrive/c/pkg/downloads/grass-6.2.0RC2/vector/v.digit
--
Finished compilation: Sat Oct  7 10:00:22 CST 2006
(In case of errors please change into the directory with error and run 'make')

I tried running make in the v.digit directory and got more reference
errors but they seem to be related just to tcltk.

Does anyone have any suggestions on what I should try next?

Thanks

Bruce




More information about the grass-user mailing list