<div dir="ltr">Hi PDAL and GDAL list<div><br></div><div>I'm referring to the error reported above when (still) trying to compile PDAL with pointcloud support.</div><div><br></div><div>What I'm really wondering is why GDAL developpers are calling <span style="font-family:Calibri,sans-serif;font-size:15px">function</span><span style="font-family:Calibri,sans-serif;font-size:15px"> </span><span style="font-family:Calibri,sans-serif;font-size:15px">gtCPLRealloc the same as in GeoTIFF lib but </span><span style="font-family:Calibri,sans-serif;font-size:15px">with different declaration</span><span style="font-family:Calibri,sans-serif;font-size:15px">?</span></div>
<div><span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">See </span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">/usr/include/gdal/cpl_port.h:</span><span style="font-family:Calibri,sans-serif;font-size:15px">533:89: => ‘void* gtCPLRealloc(void*, size_t)</span><span style="font-family:Calibri,sans-serif;font-size:15px">’ and</span></div>
<div><span style="font-family:Calibri,sans-serif;font-size:11pt">/usr/include/geotiff/cpl_serv.</span><span style="font-family:Calibri,sans-serif;font-size:11pt">h:144:20 => ‘void* gtCPLRealloc(void*, int)</span><span style="font-family:Calibri,sans-serif;font-size:15px">’</span></div>
<div><span lang="EN-US"><br></span></div><div><span lang="EN-US">-S.</span></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/29 Heng Zhi Feng (<a href="mailto:zheng@hsr.ch">zheng@hsr.ch</a>) <span dir="ltr"><<a href="mailto:zheng@hsr.ch" target="_blank">zheng@hsr.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE-CH" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">We are having issues building PDAL on Ubuntu 13.10, following the guide on
<b><span style="color:red">[1].</span></b><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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’.”.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Our next approach was to use the script “pramsey-config.sh” from github and was thrown the following errors:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p style="text-autospace:none">
<u></u><span lang="EN-US"><span>1.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US">In file included from /usr/include/gdal/cpl_conv.h:34:0,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">                 from /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.hpp:42,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">                 from /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.cpp:35:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">/usr/include/gdal/cpl_port.h:533:89: error: declaration of C function ‘void* gtCPLRealloc(void*, size_t)’ conflicts with<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">#define CPL_WARN_UNUSED_RESULT                        __attribute__((warn_unused_result))<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">                                                                                         ^<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">/usr/include/gdal/cpl_conv.h:65:44: note: in expansion of macro ‘_WARN_UNUSED_RESULT’<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">void CPL_DLL *CPLRealloc( void *, size_t ) CPL_WARN_UNUSED_RESULT;<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US"><u></u> <u></u></span></p>
<p style="text-autospace:none">
<u></u><span lang="EN-US"><span>2.<span style="font:7.0pt "Times New Roman"">      
</span></span></span><u></u><span lang="EN-US">In file included from /usr/include/geotiff/geo_simpletags.h:34:0,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">                 from /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.hpp:41,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">                 from /home/zheng/Downloads/PDAL/src/drivers/las/GeotiffSupport.cpp:35:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US">/usr/include/geotiff/cpl_serv.h:144:20: error: previous declaration ‘void* gtCPLRealloc(void*, int)’ here<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;text-autospace:none"><span lang="EN-US"></span>#define CPLRealloc gtCPLRealloc<u></u><u></u></p>
<p><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">** We had adapted the path for the dependencies to our system in the script.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Would greatly appreciate if someone could advise on how to proceed.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Zhi Feng<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="color:red">[1]</span></b><span lang="EN-US" style="color:red">
</span><a href="http://www.pointcloud.org/compilation/unix.html" target="_blank"><span lang="EN-US">http://www.pointcloud.org/compilation/unix.html</span></a><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a><br></blockquote></div><br></div>