[Gdal-dev] gdal Install

Ryan Ollerenshaw ollerery at engr.orst.edu
Fri Sep 15 20:49:55 EDT 2006


I think that i took care of my previous problem by installing the ogdi 
rmp but now i am getting the following errors during make.  Do these 
errors mean that i need to install grass? isnt grass its own GIS 
application why would i need to install it if i only need gdal to use 
with MapServer?

I am using this configure command:
./configure --with-png=internal --with-libtiff=internal 
--with-jpeg=internal  --with-gif=internal 
--with-pg=/usr/local/pgsql/bin/pg_config --with-geos 
--with-xerces=/root/xerces-c-src_2_7_0/

Here are the errors that are displayed:
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 `/usr/share/gdal-1.3.2/frmts/grass'
make[1]: *** [grass-install-obj] Error 2
make[1]: Leaving directory `/usr/share/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2



More information about the Gdal-dev mailing list