[GRASS-dev] Re: [GRASS GIS] #564: python_grass7 compilation

GRASS GIS trac at osgeo.org
Thu Jun 18 23:40:43 EDT 2009


#564: python_grass7 compilation
------------------------+---------------------------------------------------
  Reporter:  neuba      |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect     |      Status:  reopened                 
  Priority:  major      |   Milestone:  7.0.0                    
 Component:  Compiling  |     Version:  svn-trunk                
Resolution:             |    Keywords:  swig                     
  Platform:  Linux      |         Cpu:  x86-32                   
------------------------+---------------------------------------------------
Changes (by hamish):

  * status:  closed => reopened
  * component:  default => Compiling
  * priority:  normal => major
  * version:  unspecified => svn-trunk
  * keywords:  => swig
  * resolution:  fixed =>

Comment:

 I see the bug too on debian/lenny + amd64.

 the problem is a missing -I$(GDALCFLAGS) in the Makefile, not user error.

 {{{
 ...
 gcc -I/usr/src/grass/svn/trunk/dist.x86_64-unknown-linux-gnu/include
 -I/usr/src/grass/svn/trunk/dist.x86_64-unknown-linux-gnu/include  -ggdb
 -march=amdfam10 -Wall -Werror-implicit-function-declaration    -fPIC
 -I/usr/include/python2.5 -I/usr/include/python2.5
 -DPACKAGE=\""grasslibs"\"   -I/usr/src/grass/svn/trunk/dist.x86_64-
 unknown-linux-gnu/include -I/usr/src/grass/svn/trunk/dist.x86_64-unknown-
 linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/vector_wrap.o -c
 vector_wrap.c
 In file included from /usr/src/grass/svn/trunk/dist.x86_64-unknown-linux-
 gnu/include/grass/vect/digit.h:3,
                  from /usr/src/grass/svn/trunk/dist.x86_64-unknown-linux-
 gnu/include/grass/Vect.h:4,
                  from vector_wrap.c:2731:
 /usr/src/grass/svn/trunk/dist.x86_64-unknown-linux-
 gnu/include/grass/vect/dig_structs.h:24:21: error: ogr_api.h: No such file
 or directory
 ...
 }}}



 the vars seem to be set correctly:
 {{{
 Platform.make:GDALCFLAGS          = -I/usr/include/gdal
 Platform.make:PROJINC             =  $(GDALCFLAGS)
 }}}

 source:grass/trunk/swig/python/Makefile@#L31 :
 {{{
 vector_wrap_c_FLAGS = $(VECT_INC)
 proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
 }}}



 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/564#comment:2>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list