[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

Problem fixed

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

Marco


Da: grass-dev-bounces@lists.osgeo.org [mailto:grass-dev-bounces@lists.osgeo.org] Per conto di marco.pasetti@alice.it
Inviato: martedì 4 marzo 2008 18.03
A: grass-dev@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

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@alice.it> wrote:

Problem fixed

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

Marco

________________________________
Da: grass-dev-bounces@lists.osgeo.org
[mailto:grass-dev-bounces@lists.osgeo.org] Per conto di
marco.pasetti@alice.it
Inviato: martedì 4 marzo 2008 18.03
A: grass-dev@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

Hi Markus,

I already checked it out... but it seems that there's still not a
grass-plugin for latest gdal release (1.5.0); the last I found is for gdal
1.4.3

Marco

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: martedì 4 marzo 2008 22.41
A: Marco Pasetti
Cc: grass-dev@lists.osgeo.org
Oggetto: Re: [GRASS-dev] GDAL 1.5.0 Build Error With GRASS Support

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_GD
AL/OGR_Plugin

cheers
Markus

On Tue, Mar 4, 2008 at 9:24 PM, Marco Pasetti <marco.pasetti@alice.it>
wrote:

Problem fixed

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

Marco

________________________________
Da: grass-dev-bounces@lists.osgeo.org
[mailto:grass-dev-bounces@lists.osgeo.org] Per conto di
marco.pasetti@alice.it
Inviato: martedì 4 marzo 2008 18.03
A: grass-dev@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

Hi Marco,
(cc Frank)

I assume that the plugin for gdal 1.4.3 also works for gdal 1.5.0.

Markus

On Tue, Mar 4, 2008 at 10:51 PM, Marco Pasetti <marco.pasetti@alice.it> wrote:

Hi Markus,

I already checked it out... but it seems that there's still not a
grass-plugin for latest gdal release (1.5.0); the last I found is for gdal
1.4.3

Marco

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: martedì 4 marzo 2008 22.41
A: Marco Pasetti
Cc: grass-dev@lists.osgeo.org
Oggetto: Re: [GRASS-dev] GDAL 1.5.0 Build Error With GRASS Support

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_GD
AL/OGR_Plugin

cheers
Markus

On Tue, Mar 4, 2008 at 9:24 PM, Marco Pasetti <marco.pasetti@alice.it>
wrote:
>
>
> Problem fixed
>
> needed only to add --with-local=/usr/local in configure
>
> Marco
>
> ________________________________
> Da: grass-dev-bounces@lists.osgeo.org
> [mailto:grass-dev-bounces@lists.osgeo.org] Per conto di
> marco.pasetti@alice.it
> Inviato: martedì 4 marzo 2008 18.03
> A: grass-dev@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>

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

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

Has anyone had success with the grass-gdal plugin an MinGW?
For me, it just always produced Linux style .so files.

Cheers,

Benjamin

Markus Neteler wrote:

Hi Marco,
(cc Frank)

I assume that the plugin for gdal 1.4.3 also works for gdal 1.5.0.

Markus

On Tue, Mar 4, 2008 at 10:51 PM, Marco Pasetti <marco.pasetti@alice.it> wrote:

Hi Markus,

I already checked it out... but it seems that there's still not a
grass-plugin for latest gdal release (1.5.0); the last I found is for gdal
1.4.3

Marco

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: martedì 4 marzo 2008 22.41
A: Marco Pasetti
Cc: grass-dev@lists.osgeo.org
Oggetto: Re: [GRASS-dev] GDAL 1.5.0 Build Error With GRASS Support

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_GD
AL/OGR_Plugin

cheers
Markus

On Tue, Mar 4, 2008 at 9:24 PM, Marco Pasetti <marco.pasetti@alice.it>
wrote:
>
> Problem fixed
>
> needed only to add --with-local=/usr/local in configure
>
> Marco
>
> ________________________________
> Da: grass-dev-bounces@lists.osgeo.org
> [mailto:grass-dev-bounces@lists.osgeo.org] Per conto di
> marco.pasetti@alice.it
> Inviato: martedì 4 marzo 2008 18.03
> A: grass-dev@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>

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

--
Benjamin Ducke
Senior Applications Support and Development Officer

Oxford Archaeological Unit Limited
Janus House
Osney Mead
OX2 0ES
Oxford, U.K.

Tel.: ++44 (0)1865 263 800
benjamin.ducke@oxfordarch.co.uk