Hamish
July 24, 2009, 12:56am
1
I am still having problems compiling swig/python on Debian/Lenny (current
stable) / 64bit with the latest GRASS 6.5svn.
the proj headers are missing from the $() Make rules:
"error: ogr_srs_api.h: No such file or directory"
it compiles in trunk ok.
[...]
gcc -I/usr/local/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu/include -ggdb -march=amdfam10 -Wall -Werror-implicit-function-declaration -fPIC -DPACKAGE=\""grasslibs"\" -fPIC -I/usr/include/python2.5 -I/usr/include/python2.5 -DPACKAGE=\""grasslibs"\" -I/usr/local/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/proj_wrap.o -c proj_wrap.c
In file included from proj_wrap.c:2694:
/usr/local/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h:23:29: error: ogr_srs_api.h: No such file or directory
In file included from proj_wrap.c:2694:
/usr/local/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GPJ_grass_to_osr'
/usr/local/src/grass/svn/grass65/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h:88: error: expected declaration specifiers or '...' before 'OGRSpatialReferenceH'
make[1]: *** [OBJ.x86_64-unknown-linux-gnu/proj_wrap.o] Error 1
make[1]: Leaving directory `/usr/local/src/grass/svn/grass65/swig/python'
make: *** [default] Error 2
?
thanks,
Hamish
Hamish wrote:
I am still having problems compiling swig/python on Debian/Lenny (current
stable) / 64bit with the latest GRASS 6.5svn.
the proj headers are missing from the $() Make rules:
"error: ogr_srs_api.h: No such file or directory"
it compiles in trunk ok.
Note that using:
vector_wrap_c_FLAGS = $(VECT_INC)
proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
won't work in 6.4, as the build system doesn't use those variables.
I suggest:
EXTRA_INC = $(VECT_INC) $(PROJINC) $(GDALCFLAGS)
--
Glynn Clements <glynn@gclements.plus.com>
On 24/07/09 12:21, Glynn Clements wrote:
Hamish wrote:
I am still having problems compiling swig/python on Debian/Lenny (current
stable) / 64bit with the latest GRASS 6.5svn.
the proj headers are missing from the $() Make rules:
"error: ogr_srs_api.h: No such file or directory"
it compiles in trunk ok.
Note that using:
vector_wrap_c_FLAGS = $(VECT_INC)
proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
won't work in 6.4, as the build system doesn't use those variables.
I suggest:
EXTRA_INC = $(VECT_INC) $(PROJINC) $(GDALCFLAGS)
That solves it for me. Should this then be corrected for 65svn and 64_release ?
Moritz
Moritz Lennert wrote:
>> I am still having problems compiling swig/python on Debian/Lenny (current
>> stable) / 64bit with the latest GRASS 6.5svn.
>>
>> the proj headers are missing from the $() Make rules:
>> "error: ogr_srs_api.h: No such file or directory"
>>
>> it compiles in trunk ok.
>
> Note that using:
>
> vector_wrap_c_FLAGS = $(VECT_INC)
> proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
>
> won't work in 6.4, as the build system doesn't use those variables.
>
> I suggest:
>
> EXTRA_INC = $(VECT_INC) $(PROJINC) $(GDALCFLAGS)
That solves it for me. Should this then be corrected for 65svn and
64_release ?
Yes.
--
Glynn Clements <glynn@gclements.plus.com>
On 28/07/09 16:55, Glynn Clements wrote:
Moritz Lennert wrote:
I am still having problems compiling swig/python on Debian/Lenny (current
stable) / 64bit with the latest GRASS 6.5svn.
the proj headers are missing from the $() Make rules:
"error: ogr_srs_api.h: No such file or directory"
it compiles in trunk ok.
Note that using:
vector_wrap_c_FLAGS = $(VECT_INC)
proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
won't work in 6.4, as the build system doesn't use those variables.
I suggest:
EXTRA_INC = $(VECT_INC) $(PROJINC) $(GDALCFLAGS)
That solves it for me. Should this then be corrected for 65svn and 64_release ?
Yes.
Done in r38529 and r38530.
Moritz