Skip to content

Instantly share code, notes, and snippets.

@chambbj
Created March 28, 2012 18:53
Show Gist options
  • Save chambbj/2229405 to your computer and use it in GitHub Desktop.
Save chambbj/2229405 to your computer and use it in GitHub Desktop.
GeoTIFF / GDAL issues
Bradleys-MacBook-Pro:make bchambers$ make
[ 29%] Built target pdalboost
[ 29%] Building CXX object src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o
In file included from /usr/local/include/cpl_conv.h:35,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
/usr/local/include/cpl_vsi.h:173: error: declaration of C function ‘void* _GTIFcalloc(size_t)’ conflicts with
/usr/local/include/cpl_vsi.h:172: error: previous declaration ‘void* _GTIFcalloc(size_t*)’ here
In file included from /usr/local/include/cpl_conv.h:36,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
/usr/local/include/cpl_error.h:50: error: conflicting declaration ‘CE_None’
/usr/local/include/cpl_serv.h:168: error: ‘CE_None’ has a previous declaration as ‘CPLErr CE_None’
/usr/local/include/cpl_error.h:52: error: conflicting declaration ‘CE_Warning’
/usr/local/include/cpl_serv.h:170: error: ‘CE_Warning’ has a previous declaration as ‘CPLErr CE_Warning’
/usr/local/include/cpl_error.h:53: error: conflicting declaration ‘CE_Failure’
/usr/local/include/cpl_serv.h:171: error: ‘CE_Failure’ has a previous declaration as ‘CPLErr CE_Failure’
/usr/local/include/cpl_error.h:54: error: conflicting declaration ‘CE_Fatal’
/usr/local/include/cpl_serv.h:172: error: ‘CE_Fatal’ has a previous declaration as ‘CPLErr CE_Fatal’
/usr/local/include/cpl_error.h:55: error: conflicting declaration ‘typedef enum CPLErr CPLErr’
/usr/local/include/cpl_serv.h:173: error: ‘CPLErr’ has a previous declaration as ‘typedef enum CPLErr CPLErr’
/usr/local/include/cpl_error.h:73: error: declaration of C function ‘void (* gtCPLSetErrorHandler(void (*)(CPLErr, int, const char*)))(CPLErr, int, const char*)’ conflicts with
/usr/local/include/cpl_serv.h:187: error: previous declaration ‘void gtCPLSetErrorHandler(void (*)(CPLErr, int, const char*))’ here
In file included from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
/usr/local/include/cpl_conv.h:63: error: declaration of C function ‘void* gtCPLMalloc(size_t)’ conflicts with
/usr/local/include/cpl_serv.h:147: error: previous declaration ‘void* gtCPLMalloc(int)’ here
/usr/local/include/cpl_conv.h:64: error: declaration of C function ‘void* gtCPLCalloc(size_t, size_t)’ conflicts with
/usr/local/include/cpl_serv.h:148: error: previous declaration ‘void* gtCPLCalloc(int, int)’ here
/usr/local/include/cpl_conv.h:65: error: declaration of C function ‘void* gtCPLRealloc(void*, size_t)’ conflicts with
/usr/local/include/cpl_serv.h:149: error: previous declaration ‘void* gtCPLRealloc(void*, int)’ here
make[2]: *** [src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/pdal.dir/all] Error 2
make: *** [all] Error 2
@hobu
Copy link

hobu commented Mar 28, 2012

./configure --with-libtiff=internal
--with-geotiff=/usr/local
--with-png=internal
--with-jpeg=internal
--with-proj=/usr/local
--without-python
--with-mrsid=/Users/hobu/installs/mrsid/Raster_DSDK
--with-jp2mrsid
--with-geos=/usr/local/bin/geos-config
--with-pg=/Users/hobu/pg84/bin/pg_config
--without-xerces
--with-expat
--without-oci
--enable-debug
--without-libtool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment