Dear List,
Im running grass 6.3 on suse 10.2. I have installed the latest version from the geo repository.
I am now having problems trying to install i.landsat.toar
I have checked out the most recent version of grass addons.
Im getting the following error.
I am a complete novice when it comes to make.
The gis.h file is in /opt/grass/include/grass and somehow make isnt finding it.
Any help would be greatly appreciated.
regards
Andy
make MODULE_TOPDIR=/opt/grass
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
gcc -I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include -O2 -DPACKAGE="“grassmods”" -I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/earth_sun.o -c earth_sun.c
gcc -I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include -O2 -DPACKAGE="“grassmods”" -I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/landsat.o -c landsat.c
landsat.c:4:23: error: grass/gis.h: No such file or directory
make: *** [OBJ.x86_64-unknown-linux-gnu/landsat.o] Error 1
On Tue, Oct 21, 2008 at 11:54 PM, andrew haywood <ahaywood3@gmail.com> wrote:
Dear List,
Im running grass 6.3 on suse 10.2. I have installed the latest version from
the geo repository.
I am now having problems trying to install i.landsat.toar
I have checked out the most recent version of grass addons.
Im getting the following error.
I am a complete novice when it comes to make.
The gis.h file is in /opt/grass/include/grass and somehow make isnt finding
it.
Any help would be greatly appreciated.
regards
Andy
make MODULE_TOPDIR=/opt/grass
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
OBJ.x86_64-unknown-linux-gnu
gcc
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-O2 -DPACKAGE=\""grassmods"\"
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/earth_sun.o -c earth_sun.c
gcc
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-O2 -DPACKAGE=\""grassmods"\"
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/landsat.o -c landsat.c
landsat.c:4:23: error: grass/gis.h: No such file or directory
make: *** [OBJ.x86_64-unknown-linux-gnu/landsat.o] Error 1
did you
./configure
GRASS?
Markus
Thanks Markus,
I have not been compiling GRASS from scratch (I have been using the binaries). So I havent been running ./configure GRASS.
If i install the binary how can i run ./configure grass?
In the end i compiled the addons using the following (and linked some of the librarys to the correct place - Not sure what SUSE is doing with some of these).
make MODULE_TOPDIR=/opt/grass CPPFLAGS=‘-I/opt/grass/include’ LDFLAGS=‘-L/opt/grass/lib -L/lib -L/usr/lib’
Historically I have compiled grass, but moving to a 64bit installation I have found it too hard to track all the dependancies and have relied on binary packages.
cheers
Andy
On 10/31/08, Markus Neteler <neteler@osgeo.org> wrote:
On Tue, Oct 21, 2008 at 11:54 PM, andrew haywood <ahaywood3@gmail.com> wrote:
Dear List,
Im running grass 6.3 on suse 10.2. I have installed the latest version from
the geo repository.
I am now having problems trying to install i.landsat.toar
I have checked out the most recent version of grass addons.
Im getting the following error.
I am a complete novice when it comes to make.
The gis.h file is in /opt/grass/include/grass and somehow make isnt finding
it.
Any help would be greatly appreciated.
regards
Andy
make MODULE_TOPDIR=/opt/grass
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
OBJ.x86_64-unknown-linux-gnu
gcc
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-O2 -DPACKAGE="“grassmods”"
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/earth_sun.o -c earth_sun.c
gcc
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-O2 -DPACKAGE="“grassmods”"
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/landsat.o -c landsat.c
landsat.c:4:23: error: grass/gis.h: No such file or directory
make: *** [OBJ.x86_64-unknown-linux-gnu/landsat.o] Error 1
did you
./configure
GRASS?
Markus
Andrew,
On Thu, Oct 30, 2008 at 11:14 PM, andrew haywood <ahaywood3@gmail.com> wrote:
Thanks Markus,
I have not been compiling GRASS from scratch (I have been using the
binaries). So I havent been running ./configure GRASS.
ok
If i install the binary how can i run ./configure grass?
I looked at it again, it may work also without.
In the end i compiled the addons using the following (and linked some of the
librarys to the correct place - Not sure what SUSE is doing with some of
these).
make MODULE_TOPDIR=/opt/grass CPPFLAGS='-I/opt/grass/include'
LDFLAGS='-L/opt/grass/lib -L/lib -L/usr/lib'
Yes, like this you indicated the correct directories.
In the error message, there was
-I/usr/src/packages/BUILD/grass-6.3.0/dist.x86_64-unknown-linux-gnu/include
indicated. A link would do it as well.
Eventually we should have something like
gdal-config --cflags
-I/usr/local/include
(so grass64-config or so).
Historically I have compiled grass, but moving to a 64bit installation I
have found it too hard to track all the dependancies and have relied on
binary packages.
It should not be that hard (I am on 64bit for years).
Markus