[Gdal-dev] GDAL compilation with PGCHIP driver

Frank Warmerdam warmerdam at pobox.com
Sat Oct 7 01:47:49 EDT 2006


Ricardo wrote:
> Hi all,
> I'm trying to compile the GDAL library with PGCHIP driver, under Fedora 4, 
> so when I execute the " make " command it returns to me the followinh 
> menssage;
>  
> -------------------------------------------------------------
> make -C pgchip install-obj
> make[2]: Entering directory `/usr/src/gdal-1.3.2/frmts/pgchip'
> /bin/sh /usr/src/gdal-1.3.2/libtool --mode=compile g++ -Wall -O2 -I/usr/incl 
> ude -I/usr/share/pgsql/contrib/postgis-1.1.2/lwgeom -I/usr/src/gdal-
> 1.3.2/port -I/usr/src/gdal-1.3.2/gcore -I/usr/src/gdal-1.3.2/alg -
> I/usr/src/gdal-1.3.2/ogr -I/usr/src/gdal-1.3.2/ogr/ogrsf_frmts -c -
> o ../o/pgchipdataset.o pgchipdataset. cpp
> g++ -Wall -O2 -I/usr/include -I/usr/share/pgsql/contrib/postgis-
> 1.1.2/lwgeom -I /usr/src/gdal-1.3.2/port -I/usr/src/gdal-1.3.2/gcore -
> I/usr/src/gdal-1.3.2/alg - I/usr/src/gdal-1.3.2/ogr -I/usr/src/gdal-
> 1.3.2/ogr/ogrsf_frmts -c pgchipdataset. cpp -fPIC -DPIC -
> o ../o/.libs/pgchipdataset.o
> pgchipdataset.cpp: In function 'GDALDataset* PGCHIPCreateCopy(const char*, 
> GDALD ataset*, int, char**, int (*)(double, const char*, void*), void*)':
> pgchipdataset.cpp:957: error: invalid conversion from 'unsigned char*' 
> to 'char* '
> pgchipdataset.cpp:957: error: initializing argument 2 of 'void deparse_hex
> (uch ar, char*)'
> pgchipdataset.cpp:964: error: invalid conversion from 'unsigned char*' 
> to 'char* '
> pgchipdataset.cpp:964: error: initializing argument 2 of 'void deparse_hex
> (uch ar, char*)'
> pgchipdataset.cpp:971: error: invalid conversion from 'unsigned char*' 
> to 'char* '
> pgchipdataset.cpp:971: error: initializing argument 2 of 'void deparse_hex
> (uch ar, char*)'
> make[2]: ** [../o/pgchipdataset.o] Erro 1
> make[2]: Leaving directory `/usr/src/gdal-1.3.2/frmts/pgchip'
> make[1]: ** [pgchip-install-obj] Erro 2
> make[1]: Leaving directory `/usr/src/gdal-1.3.2/frmts'
> make: ** [frmts-target] Erro 2
> --------------------------------------------------------------------
>  
> May you help me?
> Thank you anyway.
> Ricardo Luís

Ricardo,

The PGCHIP driver is not supported, and I think can be thought of as
an experiment that was never really completed.  Well at least I'm not
too sure of whether it is supposed to be working.

However, if you are still interested, the above errors look like simple
casting issues, just cast the results by inserting "(char *)" at the
appropriate places.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list