<br><tt><font size=2>Hi Folks,</font></tt>
<br><tt><font size=2>        Running Ubuntu
11.10 64 bit with the ubuntu-gis unstable ppa.  After reviewing some
of the archived postings, I downloaded the zipped file version (my agency
blocks git ports) of PDAL-af197b0 and the latest nightly trunk source of
gdal, gdal-svn-trunk-20120816.zip   .  Gdal trunk  built
and installed fine (--with-geotiff=internal) to /usr/local/lib .  I
then tried to build pdal and got :</font></tt>
<br>
<br><font size=3>[ 43%] Building CXX object src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o<br>
In file included from /usr/local/include/cpl_conv.h:35:0,<br>
                
from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.hpp:42,<br>
                
from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.cpp:35:<br>
/usr/local/include/cpl_vsi.h:173:37: error: declaration of C function ‘void*
_GTIFcalloc(size_t)’ conflicts with<br>
/usr/local/include/cpl_vsi.h:172:17: error: previous declaration ‘void*
_GTIFcalloc(size_t*)’ here<br>
In file included from /usr/local/include/cpl_conv.h:36:0,<br>
                
from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.hpp:42,<br>
                
from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.cpp:35:<br>
/usr/local/include/cpl_error.h:50:15: error: conflicting declaration ‘CE_None’<br>
/usr/local/include/cpl_serv.h:168:5: error: ‘CE_None’ has a previous
declaration as ‘CPLErr CE_None’<br>
/usr/local/include/cpl_error.h:52:18: error: conflicting declaration ‘CE_Warning’<br>
/usr/local/include/cpl_serv.h:170:5: error: ‘CE_Warning’ has a previous
declaration as ‘CPLErr CE_Warning’<br>
/usr/local/include/cpl_error.h:53:18: error: conflicting declaration ‘CE_Failure’<br>
/usr/local/include/cpl_serv.h:171:5: error: ‘CE_Failure’ has a previous
declaration as ‘CPLErr CE_Failure’<br>
/usr/local/include/cpl_error.h:54:16: error: conflicting declaration ‘CE_Fatal’<br>
/usr/local/include/cpl_serv.h:172:5: error: ‘CE_Fatal’ has a previous
declaration as ‘CPLErr CE_Fatal’<br>
/usr/local/include/cpl_error.h:55:3: error: conflicting declaration ‘typedef
enum CPLErr CPLErr’<br>
/usr/local/include/cpl_serv.h:173:3: error: ‘CPLErr’ has a previous declaration
as ‘typedef enum CPLErr CPLErr’<br>
/usr/local/include/cpl_error.h:73:71: error: declaration of C function
‘void (* gtCPLSetErrorHandler(CPLErrorHandler))(CPLErr, int, const char*)’
conflicts with<br>
/usr/local/include/cpl_serv.h:186:14: error: previous declaration ‘void
gtCPLSetErrorHandler(void (*)(CPLErr, int, const char*))’ here<br>
In file included from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.hpp:42:0,<br>
                
from /home/dnewcomb/Downloads/PDAL-PDAL-af197b0/src/drivers/las/GeotiffSupport.cpp:35:<br>
/usr/local/include/cpl_conv.h:63:35: error: declaration of C function ‘void*
gtCPLMalloc(size_t)’ conflicts with<br>
/usr/local/include/cpl_serv.h:147:15: error: previous declaration ‘void*
gtCPLMalloc(int)’ here<br>
/usr/local/include/cpl_conv.h:64:43: error: declaration of C function ‘void*
gtCPLCalloc(size_t, size_t)’ conflicts with<br>
/usr/local/include/cpl_serv.h:148:15: error: previous declaration ‘void*
gtCPLCalloc(int, int)’ here<br>
/usr/local/include/cpl_conv.h:65:44: error: declaration of C function ‘void*
gtCPLRealloc(void*, size_t)’ conflicts with<br>
/usr/local/include/cpl_serv.h:149:15: error: previous declaration ‘void*
gtCPLRealloc(void*, int)’ here<br>
make[2]: *** [src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o]
Error 1<br>
make[1]: *** [src/CMakeFiles/pdal.dir/all] Error 2<br>
make: *** [all] Error 2</font>
<br><a href=mailto:micah.wengren@noaa.gov></a>
<br><tt><font size=2>I freely admit that I am a cmake newbie, and not really
a C programmer. Is there something obvious that I am missing?  Do
I need to install libgeotiff separately and not use the internal version
in gdal trunk?</font></tt>
<br>
<br><tt><font size=2>Doug</font></tt>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Doug Newcomb        
    <br>
USFWS<br>
Raleigh, NC<br>
919-856-4520 ext. 14 doug_newcomb@fws.gov<br>
---------------------------------------------------------------------------------------------------------<br>
The opinions I express are my own and are not representative of the official
policy of the U.S.Fish and Wildlife Service or Dept. of the Interior.  
Life is too short for undocumented, proprietary data formats.</font>