Hi PDAL and GDAL list

I'm referring to the error reported above when (still) trying to compile
PDAL with pointcloud support.

What I'm really wondering is why GDAL developpers are calling function
gtCPLRealloc
the same as in GeoTIFF lib but with different declaration?

See
/usr/include/gdal/cpl_port.h:533:89: => ‘void* gtCPLRealloc(void*, size_t)’
and
/usr/include/geotiff/cpl_serv.h:144:20 => ‘void* gtCPLRealloc(void*, int)’

-S.



2013/10/29 Heng Zhi Feng ([email protected]) <[email protected]>

>  Hello,
>
>
>
> We are having issues building PDAL on Ubuntu 13.10, following the guide on
> *[1].*
>
>
>
> Initially, PDAL successfully compiles with using the “cmake –G “Unix
> Makefiles” ../” command. However, when trying to import a sample .LAS file
> into PostgreSQL 9.1 using the PDAL Pipeline application. The following
> error occurred “Caught PDAL exception: Unable to create writer for type
> ‘drivers.pgpointcloud.writer’.”.
>
>
>
> Our next approach was to use the script “pramsey-config.sh” from github
> and was thrown the following errors:
>
>
>
> 1.       In file included from /usr/include/gdal/cpl_conv.h:34:0,
>
>                  from
> /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
>
>                  from
> /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
>
> /usr/include/gdal/cpl_port.h:533:89: error: declaration of C function
> ‘void* gtCPLRealloc(void*, size_t)’ conflicts with
>
> #define CPL_WARN_UNUSED_RESULT
> __attribute__((warn_unused_result))
>
>
> ^
>
> /usr/include/gdal/cpl_conv.h:65:44: note: in expansion of macro
> ‘_WARN_UNUSED_RESULT’
>
> void CPL_DLL *CPLRealloc( void *, size_t ) CPL_WARN_UNUSED_RESULT;
>
>
>
> 2.       In file included from /usr/include/geotiff/geo_simpletags.h:34:0,
>
>                  from
> /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.hpp:41,
>
>                  from
> /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
>
> /usr/include/geotiff/cpl_serv.h:144:20: error: previous declaration ‘void*
> gtCPLRealloc(void*, int)’ here
>
> #define CPLRealloc gtCPLRealloc
>
>
>
> ** We had adapted the path for the dependencies to our system in the
> script.
>
>
>
> Would greatly appreciate if someone could advise on how to proceed.
>
>
>
> Thank you.
>
> Regards,
>
> Zhi Feng
>
>
>
> *[1]* http://www.pointcloud.org/compilation/unix.html
>
> _______________________________________________
> pdal mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/pdal
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to