[Gdal-dev] compiling gdal from CVS on solaris
Jeffery D. Collins
Jeff.Collins at vexcel.com
Wed Oct 6 18:35:23 EDT 2004
Below are diffs (against CVS) necessary for compiling gdal on Solaris 8 using
gcc (3.2.2). There are likely better ways to solve these problems, and I may
have broken something else without realizing it. Please point out my
blunders:-)
Had to build with: CFLAGS='-fPIC -DPIC' make
The change present in the first diff below was due to the compiler viewing
CPPFLAGS as recursive. The change in the second diff was due to the
inability of the compiler to find jerror.h. The final change failed to wrap
OGR_G_Centroid in extern "C"{}.
Index: frmts/fit/GNUmakefile
===================================================================
RCS file: /cvs/maptools/cvsroot/gdal/frmts/fit/GNUmakefile,v
retrieving revision 1.6
diff -r1.6 GNUmakefile
7c7
< CPPFLAGS = $(GDAL_INCLUDE) $(XTRA_OPT) $(CPPFLAGS)
---
> CPPFLAGS := $(GDAL_INCLUDE) $(XTRA_OPT) $(CPPFLAGS)
Index: frmts/gtiff/libtiff/GNUmakefile
===================================================================
RCS file: /cvs/maptools/cvsroot/gdal/frmts/gtiff/libtiff/GNUmakefile,v
retrieving revision 1.17
diff -r1.17 GNUmakefile
44c44
< ALL_C_FLAGS = $(CFLAGS) -DZIP_SUPPORT -DPIXARLOG_SUPPORT
-I../../zlib
---
> ALL_C_FLAGS = $(CFLAGS) -DZIP_SUPPORT -DPIXARLOG_SUPPORT
-I../../zlib
-I../../../frmts/jpeg/libjpeg
Index: ogr/ogr_api.h
===================================================================
RCS file: /cvs/maptools/cvsroot/gdal/ogr/ogr_api.h,v
retrieving revision 1.20
diff -r1.20 ogr_api.h
383a384,385
> int OGR_G_Centroid( OGRGeometryH hPolygon, OGRGeometryH hCentroidPoint );
>
Thanks!
--
Jeff
More information about the Gdal-dev
mailing list