[Gdal-dev] gdal 1.3.0 install
Ryan Ollerenshaw
ollerery at engr.orst.edu
Mon Sep 18 14:07:22 EDT 2006
Ryan Ollerenshaw wrote:
> I am trying to compile gdal on fedora core 5 but i keep running into
> problems, i am using the following configure command:
>
> ./configure --with-png --with-libtiff --with-jpeg --with-gif
> --with-geotiff=internal --with-pg=/usr/local/pgsql/bin/pg_config
> --with-geos --without-cfitsio
>
> then during make i am getting the following error:
>
> make[2]: Entering directory `/root/gdal-1.3.1/frmts/fit'
> /bin/sh ../../libtool --mode=compile g++ -Wall -O2 -I../../port
> -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts
> -I../../port -c -o ../o/fitdataset.o fitdataset.cpp
> g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr
> -I../../ogr/ogrsf_frmts -I../../port -c fitdataset.cpp -fPIC -DPIC -o
> ../o/.libs/fitdataset.o
> fitdataset.cpp:177: error: extra qualification 'FITRasterBand::' on
> member 'FITRasterBand'
> fitdataset.cpp: In static member function 'static GDALDataset*
> FITDataset::Open(GDALOpenInfo*)':
> fitdataset.cpp:1019: warning: dereferencing type-punned pointer will
> break strict-aliasing rules
> make[2]: *** [../o/fitdataset.o] Error 1
> make[2]: Leaving directory `/root/gdal-1.3.1/frmts/fit'
> make[1]: *** [fit-install-obj] Error 2
> make[1]: Leaving directory `/root/gdal-1.3.1/frmts'
> make: *** [frmts-target] Error 2
>
>
> any help would be great, thanks.
>
I have tried gdal-1.3.1 and got the same error
With gdal-1.3.2 i get the following error:
make[2]: Entering directory `/root/gdal-1.3.2/frmts/grass'
/bin/sh /root/gdal-1.3.2/libtool --mode=compile g++ -Wall -O2
-I/root/gdal-1.3.2/port -I/root/gdal-1.3.2/gcore -I/root/gdal-1.3.2/alg
-I/root/gdal-1.3.2/ogr -I/root/gdal-1.3.2/ogr/ogrsf_frmts -DOGR_ENABLED
-I/root/gdal-1.3.2/port -c -o ../o/grassdataset.o grassdataset.cpp
g++ -Wall -O2 -I/root/gdal-1.3.2/port -I/root/gdal-1.3.2/gcore
-I/root/gdal-1.3.2/alg -I/root/gdal-1.3.2/ogr
-I/root/gdal-1.3.2/ogr/ogrsf_frmts -DOGR_ENABLED -I/root/gdal-1.3.2/port
-c grassdataset.cpp -fPIC -DPIC -o ../o/.libs/grassdataset.o
grassdataset.cpp:84:22: error: libgrass.h: No such file or directory
grassdataset.cpp: In constructor
'GRASSRasterBand::GRASSRasterBand(GRASSDataset*, int, const char*, const
char*)':
grassdataset.cpp:182: error: aggregate 'Cell_head sCellInfo' has
incomplete type and cannot be defined
grassdataset.cpp:187: error: 'G_get_cellhd' was not declared in this scope
grassdataset.cpp:188: error: 'G_raster_map_type' was not declared in
this scope
grassdataset.cpp:193: error: aggregate 'FPRange sRange' has incomplete
type and cannot be defined
grassdataset.cpp:196: error: 'G_read_fp_range' was not declared in this
scope
grassdataset.cpp:203: error: 'G_get_fp_range_min_max' was not declared
in this scope
grassdataset.cpp:210: error: 'CELL_TYPE' was not declared in this scope
grassdataset.cpp:236: error: 'FCELL_TYPE' was not declared in this scope
grassdataset.cpp:241: error: 'DCELL_TYPE' was not declared in this scope
grassdataset.cpp:250: error: 'G_open_cell_old' was not declared in this
scope
grassdataset.cpp:255: error: aggregate 'Colors sGrassColors' has
incomplete type and cannot be defined
grassdataset.cpp:259: error: 'G_read_colors' was not declared in this scope
grassdataset.cpp:267: error: 'G_get_color' was not declared in this scope
grassdataset.cpp:287: error: 'G_free_colors' was not declared in this scope
grassdataset.cpp: In destructor 'virtual
GRASSRasterBand::~GRASSRasterBand()':
grassdataset.cpp:302: error: 'G_close_cell' was not declared in this scope
grassdataset.cpp: In member function 'virtual CPLErr
GRASSRasterBand::IReadBlock(int, int, void*)':
grassdataset.cpp:321: error: 'G_get_null_value_row' was not declared in
this scope
grassdataset.cpp:326: error: 'G_get_raster_row' was not declared in this
scope
grassdataset.cpp:346: error: 'G_get_raster_row' was not declared in this
scope
grassdataset.cpp: In static member function 'static GDALDataset*
GRASSDataset::Open(GDALOpenInfo*)':
grassdataset.cpp:517: error: 'G_set_error_routine' was not declared in
this scope
grassdataset.cpp:518: error: 'G_gisinit_2' was not declared in this scope
grassdataset.cpp:524: error: 'G_check_cell' was not declared in this scope
grassdataset.cpp:529: error: 'G_free' was not declared in this scope
grassdataset.cpp:536: error: 'I_check_group' was not declared in this scope
grassdataset.cpp:538: error: aggregate 'Ref ref' has incomplete type and
cannot be defined
grassdataset.cpp:540: error: 'I_init_group_ref' was not declared in this
scope
grassdataset.cpp:541: error: 'I_get_group_ref' was not declared in this
scope
grassdataset.cpp:549: error: 'I_free_group_ref' was not declared in this
scope
grassdataset.cpp:551: error: 'G_free' was not declared in this scope
grassdataset.cpp:571: error: aggregate 'Cell_head sCellInfo' has
incomplete type and cannot be defined
grassdataset.cpp:573: error: 'G_get_cellhd' was not declared in this scope
grassdataset.cpp:582: error: 'G_set_window' was not declared in this scope
grassdataset.cpp:596: error: 'G_get_cell_as_proj4' was not declared in
this scope
grassdataset.cpp:606: error: 'G_free' was not declared in this scope
make[2]: *** [../o/grassdataset.o] Error 1
make[2]: Leaving directory `/root/gdal-1.3.2/frmts/grass'
make[1]: *** [grass-install-obj] Error 2
make[1]: Leaving directory `/root/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2
More information about the Gdal-dev
mailing list