<div dir="ltr">Are there dll's in the directory C:/Scratch/Libraries/pdal/lib as well as the .lib's?  .libs aren't loadable.  The build process should create .dll files suitable for use as plugins.<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 9:48 AM, Es Kay <span dir="ltr"><<a href="mailto:fransinn@msn.com" target="_blank">fransinn@msn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_-2359771443725002692divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Thanks Andrew!</p>
<p><br>
</p>
<p>Indeed, createStage() returns a NULL-pointer.</p>
<p>The output of pdal --debug is:</p>
<p><br>
</p>
<p></p>
<div>(<span style="font-size:12pt">PDAL Debug) Loading plugins from directory .</span></div>
<div>(PDAL Debug) Loading plugins from directory C:/Scratch/Libraries/pdal/lib</div>
<div>   - kernels.delta</div>
<div>   - kernels.diff</div>
<div>   - kernels.ground</div>
<div>   - kernels.hausdorff</div>
<div>   - <a href="http://kernels.info" target="_blank">kernels.info</a></div>
<div>   - kernels.merge</div>
<div>   - kernels.pipeline</div>
<div>   - kernels.random</div>
<div>   - kernels.sort</div>
<div>   - kernels.split</div>
<div>   - kernels.tindex</div>
<div>   - kernels.translate</div>
<div><br>
</div>
and the listed directory contains following lib-files:
<p></p>
<p><br>
</p>
<div>libpdal_plugin_filter_<wbr>greedyprojection.lib</div>
<div>libpdal_plugin_filter_<wbr>gridprojection.lib</div>
<div>libpdal_plugin_filter_hexbin.<wbr>lib</div>
<div>libpdal_plugin_filter_icp.lib</div>
<div>libpdal_plugin_filter_<wbr>movingleastsquares.lib</div>
<div>libpdal_plugin_filter_<wbr>pclblock.lib</div>
<div>libpdal_plugin_filter_poisson.<wbr>lib</div>
<div>libpdal_plugin_filter_<wbr>voxelgrid.lib</div>
<div>libpdal_plugin_kernel_density.<wbr>lib</div>
<div>libpdal_plugin_kernel_pcl.lib</div>
<div>libpdal_plugin_kernel_smooth.<wbr>lib</div>
<div>libpdal_plugin_reader_<wbr>greyhound.lib</div>
<div>libpdal_plugin_reader_nitf.lib</div>
<div>libpdal_plugin_reader_oci.lib</div>
<div>libpdal_plugin_reader_pcd.lib</div>
<div>libpdal_plugin_reader_<wbr>pgpointcloud.lib</div>
<div>libpdal_plugin_reader_sqlite.<wbr>lib</div>
<div>libpdal_plugin_writer_nitf.lib</div>
<div>libpdal_plugin_writer_oci.lib</div>
<div>libpdal_plugin_writer_pcd.lib</div>
<div>libpdal_plugin_writer_<wbr>pgpointcloud.lib</div>
<div>libpdal_plugin_writer_sqlite.<wbr>lib</div>
<div>pdal_arbiter.lib</div>
<div>pdal_boost.lib</div>
<div>pdal_jsoncpp.lib</div>
<div>pdal_util.lib</div>
<div>pdalcpp.lib</div>
<br>
<p></p>
<p>So to me, it seems okay so far, right? Interestingly, pdal --drivers is missing some others as well, e.g. *.oci, *.pgpointcloud, *.poisson etc. However, it is listed when I navigate to the pdal bin folder.<br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2359771443725002692divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>><br>
<b>Gesendet:</b> Dienstag, 08. August 2017 12:47:05<br>
<b>An:</b> Es Kay<br>
<b>Cc:</b> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<b>Betreff:</b> Re: [pdal] PDAL and PCL</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Aug 7, 2017 at 11:37 AM, Es Kay <span dir="ltr">
<<a href="mailto:fransinn@msn.com" target="_blank">fransinn@msn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="m_-2359771443725002692gmail-m_8826042176997270652divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi guys,</p>
<p><span style="font-family:"Courier New",monospace;font-size:12pt">Stage *writer = factory.createStage("writers.</span><span style="font-family:"Courier New",monospace;font-size:12pt">p<wbr>cd");</span><br>
</p>
<p><span><br>
</span></p>
<p><span>I get a bad alloc when setting the input (writer-><span>setInput(reader);</span>)<br>
<span style="font-family:"Courier New",monospace">std::_Vector_alloc<std::_Vec_b<wbr>ase_types<pdal::Stage * __ptr64,std::allocator<pdal::S<wbr>tage * __ptr64> > >::_Mylast(...) hat 0x78 zurückgegeben</span><br>
</span></p>
<p><span><span style="font-family:"Courier New",monospace"><span style="font-family:Arial,Helvetica,sans-serif"></span><br>
</span></span></p>
<span style="font-family:Calibri,Helvetica,sans-serif">When I type in pdal --drivers, the pcd writers and readers do not appear, although dll-files exist in the bin-folder (the drivers appear when navigated to bin folder in powershell).</span></div>
</div>
</blockquote>
<div><br>
</div>
<div>If the drivers aren't shown with pdal --drivers, they can't be found by the plugin manager.  My assumption is that createStage() is returning 0.  You can run pdal --debug to show information about the plugin loading process and verify which directories
 are being searched for plugins.  You can also set the environment variable PDAL_DRIVER_PATH to override the default locations ( ".", "./lib", "../lib", "./bin", "../bin")</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);font-size:12pt"><br>
</span></div>
<div>-- <br>
</div>
</div>
<div class="m_-2359771443725002692gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
</div>
</div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>