[GRASS-dev] GDAL 1.5.0 Build Error With GRASS Support

Marco Pasetti marco.pasetti at alice.it
Tue Mar 4 15:24:22 EST 2008

Problem fixed
needed only to add --with-local=/usr/local in configure


Da: grass-dev-bounces at lists.osgeo.org
[mailto:grass-dev-bounces at lists.osgeo.org] Per conto di
marco.pasetti at alice.it
Inviato: martedì 4 marzo 2008 18.03
A: grass-dev at lists.osgeo.org
Oggetto: [GRASS-dev] GDAL 1.5.0 Build Error With GRASS Support

I'm building GDAL 1.5.0 with GRASS support;
it gives the following error:
In file included from grass57dataset.cpp:45:
C:/MSYS/local/grass-6.3.0RC5/include/grass/gprojects.h:23:22: proj_api.h: No
such file or directory
In file included from grass57dataset.cpp:45:
C:/MSYS/local/grass-6.3.0RC5/include/grass/gprojects.h:36: error: ISO C++
forbids declaration of `projPJ' with no type
C:/MSYS/local/grass-6.3.0RC5/include/grass/gprojects.h:36: error: expected
`;' before '*' token
make[2]: *** [../o/grass57dataset.o] Error 1
make[2]: Leaving directory `/usr/local/src/gdal-1.5.0/frmts/grass'
make[1]: *** [grass-install-obj] Error 2
make[1]: Leaving directory `/usr/local/src/gdal-1.5.0/frmts'
make: *** [frmts-target] Error 2
proj_api.h is present in /usr/local/include, while
/usr/local/grass-6.3.0RC5/include/grass has gproj_api.h
should I force GRASS code to include gproj_api.h instead of proj_api.h or
walk around the problem adding /usr/local/include to PATH before launch make
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080304/1f768a37/attachment-0001.html

More information about the grass-dev mailing list