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

Markus Neteler neteler at osgeo.org
Tue Mar 4 16:41:18 EST 2008


Hi Marco,

please don't build GDAL with direct GRASS support but use the plugin instead
(way easier...). See

http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin

cheers
Markus

On Tue, Mar 4, 2008 at 9:24 PM, Marco Pasetti <marco.pasetti at alice.it> wrote:
>
>
> Problem fixed
>
> needed only to add --with-local=/usr/local in configure
>
> Marco
>
>  ________________________________
>  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
>
>
>
>
>
> Hi,
>
> 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
> command?
>
> Thanks
>
> Marco
> _______________________________________________
>  grass-dev mailing list
>  grass-dev at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/


More information about the grass-dev mailing list