[GRASS-user] can't compile swig python on grass 7: shared no found

Glynn Clements glynn at gclements.plus.com
Sat Jun 20 17:38:50 EDT 2009


Martin Landa wrote:

> > make[1]: shared: comando non trovato (command not found)
> > make[1]: [_utils.so] Error 127 (ignorato)
> > /usr/bin/install: impossibile eseguire (can't execute) stat di (of)
> > "_utils.so": Nessun
> > file o directory (No file or directory)
> > make[1]: *** [/home/giova/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/python/grass/lib/_utils.so]
> > Errore 1
> > make: *** [default] Error 2
> >
> > *Shared command not found*?! Shoudln't it be a build flag?
> >
> > In the lines, before the error happens, a line appears starting with
> > the *shared* word, and the rest of the line contains the various LD
> > flags, and so on.
> >
> > Is there something wrong in my build tools? I'm using the ones inside
> > the build-essential package [1]
> 
> Probably, the variable for C compiler is empty, see include/Make/Compile.make
> 
> -> compiler_c

Python modules are linked using $(CXX); I'm guessing this is empty,
probably due to --with-cxx not being used.

AFAICT, it doesn't make sense to use --with-python without --with-cxx,
but configure doesn't check for this. The vdigit and nviz Makefiles
check, but swig/Makefile doesn't; I'll fix that.

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


More information about the grass-user mailing list