[GRASS-dev] Error compiling the latest grass7svn

Hi,

I just encountered the following error while compiling the last svn up
of grass_trunk:

In file /usr/local/src/grass7-svn/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h,
couldn't find ogr_srs_api.h

I turned ogr_srs_api.h to gdal/ogr_srs_api.h and it did pass the error
and compiled.

Cheers,

Pierre

--
Scientist
Landcare Research, New Zealand

On 08/06/11 05:01, Pierre Roudier wrote:

Hi,

I just encountered the following error while compiling the last svn up
of grass_trunk:

In file /usr/local/src/grass7-svn/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h,
couldn't find ogr_srs_api.h

I turned ogr_srs_api.h to gdal/ogr_srs_api.h and it did pass the error
and compiled.

using --with-gdal=[path/to/gdal-config] as a configure option should do the trick.

Moritz

Sorry, I did not include my ./configure line.

I do have the --with-gdal=[path/to/gdal-config] option right. I did
not changed my configure options, I used the usual ones, which
compiled successfully on svn the last 6 months.

Pierre

2011/6/8 Moritz Lennert <mlennert@club.worldonline.be>:

On 08/06/11 05:01, Pierre Roudier wrote:

Hi,

I just encountered the following error while compiling the last svn up
of grass_trunk:

In file
/usr/local/src/grass7-svn/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h,
couldn't find ogr_srs_api.h

I turned ogr_srs_api.h to gdal/ogr_srs_api.h and it did pass the error
and compiled.

using --with-gdal=[path/to/gdal-config] as a configure option should do the
trick.

Moritz

--
Scientist
Landcare Research, New Zealand

Pierre Roudier wrote:

I just encountered the following error while compiling the last svn up
of grass_trunk:

In file /usr/local/src/grass7-svn/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h,
couldn't find ogr_srs_api.h

When posting compilation errors, it helps if you post the compilation
command as well as the error message.

I turned ogr_srs_api.h to gdal/ogr_srs_api.h and it did pass the error
and compiled.

This looks like something has changed with your GDAL installation.

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