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

G. Allegri giohappy at gmail.com
Sat Jun 20 19:13:17 EDT 2009


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

Ok, I've added --with-cxx.
Now I get the following:

In file included from proj_wrap.c:2694:
/home/giova/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:23:29:
error: ogr_srs_api.h: Nessun file o directory
In file included from proj_wrap.c:2694:
/home/giova/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:84:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘GPJ_grass_to_osr’
/home/giova/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:88:
error: expected declaration specifiers or ‘...’ before
‘OGRSpatialReferenceH’
make[1]: *** [OBJ.i686-pc-linux-gnu/proj_wrap.o] Errore 1
make: *** [default] Errore 2

I wasn't considering the need of the gdal/ogr includes. What version
of it has swig iface been crated for? I have the precompiled version
from Cepicky repos, gdal 1.6.1
I'll try with this version source code...


More information about the grass-user mailing list