<div dir="ltr">Just pushed a fix for that error, please re-pull and try again.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 5:19 PM, Alex Jokela <span dir="ltr"><<a href="mailto:alex@camulus.com" target="_blank">alex@camulus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andrew-<br>
<br>
Here’s the error that I was also running into earlier with master, I just ran into again compiling a fresh pull (with your change):<br>
<br>
In file included from /home/alex/src/pdal/vendor/<wbr>arbiter/arbiter.cpp:43:0:<br>
/home/alex/src/pdal/vendor/<wbr>arbiter/arbiter.hpp:71:1: error: expected class-name before ‘{’ token<br>
/home/alex/src/pdal/vendor/<wbr>arbiter/arbiter.hpp: In constructor ‘pdal::arbiter::ArbiterError::<wbr>ArbiterError(std::string)’:<br>
/home/alex/src/pdal/vendor/<wbr>arbiter/arbiter.hpp:73:55: error: expected class-name before ‘(’ token<br>
/home/alex/src/pdal/vendor/<wbr>arbiter/arbiter.hpp:73:55: error: expected ‘{’ before ‘(’ token<br>
make[2]: *** [vendor/arbiter/CMakeFiles/<wbr>pdal_arbiter.dir/arbiter.cpp.<wbr>o] Error 1<br>
make[1]: *** [vendor/arbiter/CMakeFiles/<wbr>pdal_arbiter.dir/all] Error 2<br>
<span class="im HOEnZb">make: *** [all] Error 2<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">> On Mar 14, 2017, at 5:57 PM, Alex Jokela <<a href="mailto:alex@camulus.com">alex@camulus.com</a>> wrote:<br>
><br>
> Adam-<br>
><br>
> It’s a pretty old version of Debian (wheezy, maybe).  It looks like backports does have a slightly newer version of gcc (gcc-4.8).  I’m trying the fix that Andrew just pushed to master with my current compiler.  Seeing if that does the trick.<br>
><br>
>  -Alex<br>
><br>
>> On Mar 14, 2017, at 5:47 PM, Adam Steer <<a href="mailto:Adam.Steer@anu.edu.au">Adam.Steer@anu.edu.au</a>> wrote:<br>
>><br>
>> Alex, all<br>
>><br>
>> What OS are you using? For what it’s worth I went through similar issues building PDAL a while back on centOS 6. I got around it using devtoolset-4, which gave me newer compilers and ccmake3:<br>
>><br>
>> <a href="https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/" rel="noreferrer" target="_blank">https://www.<wbr>softwarecollections.org/en/<wbr>scls/rhscl/devtoolset-4/</a><br>
>><br>
>> This was a hacky ‘gotta get it going’ solution, but it worked. Migrating to centOS 7 removed the need to use the devtoolset.<br>
>><br>
>> Adam<br>
>><br>
>><br>
>>> On 15 Mar 2017, at 8:35 am, Alex Jokela <<a href="mailto:alex@camulus.com">alex@camulus.com</a>> wrote:<br>
>>><br>
>>> Andrew-<br>
>>><br>
>>> Thanks for the reply.<br>
>>><br>
>>><br>
>>> I game to try compiling from master.  I did run into a different compile error when I tried master earlier today.  I don’t have that error handy, though.  I’ll clone the repo, again, and will compile, if you’re interested in that error.<br>
>>><br>
>>> Let me know if you push the change you mentioned for a work around.<br>
>>><br>
>>> Thanks!<br>
>>><br>
>>> -Alex<br>
>>><br>
>>>> On Mar 14, 2017, at 5:21 PM, Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Alex,<br>
>>>><br>
>>>> This indeed seems to be a bug in your compiler: <a href="http://stackoverflow.com/questions/35131734/undefined-reference-when-using-lambda" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/35131734/undefined-<wbr>reference-when-using-lambda</a><br>
>>>><br>
>>>> If you're willing to try your compiler with the master branch, I can push a change that should get around the issue.  I think our use of that construct is pretty limited, so this might get things working for you.  If things compile/link I can backport the change to 1.4.<br>
>>>><br>
>>>><br>
>>>> On Tue, Mar 14, 2017 at 4:05 PM, Alex Jokela <<a href="mailto:alex@camulus.com">alex@camulus.com</a>> wrote:<br>
>>>> Howard-<br>
>>>><br>
>>>> It looks to be version 4.7.2<br>
>>>><br>
>>>> Thanks,<br>
>>>><br>
>>>> -Alex<br>
>>>><br>
>>>>> On Mar 14, 2017, at 4:56 PM, Howard Butler <<a href="mailto:howard@hobu.co">howard@hobu.co</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>>> On Mar 14, 2017, at 3:34 PM, Alex Jokela <<a href="mailto:alex@camulus.com">alex@camulus.com</a>> wrote:<br>
>>>>>><br>
>>>>>> Hello-<br>
>>>>>><br>
>>>>>> I’m trying to compile PDAL 1.4.0, and I’m running into a compile-time error:<br>
>>>>>><br>
>>>>>> CMakeFiles/pdal_plugin_<wbr>manager_test.dir/<wbr>PluginManagerTest.cpp.o: In function `pdal::DummyPlugin::<wbr>initPlugin()::{lambda()#1}::<wbr>operator int (*)()() const':<br>
>>>>>> PluginManagerTest.cpp:(.text._<wbr>ZZN4pdal11DummyPlugin10initPlu<wbr>ginEvENKUlvE_cvPFivEEv[_<wbr>ZZN4pdal11DummyPlugin10initPlu<wbr>ginEvENKUlvE_cvPFivEEv]+0x9): undefined reference to `pdal::DummyPlugin::<wbr>initPlugin()::{lambda()#1}::_<wbr>FUN()'<br>
>>>>>> collect2: error: ld returned 1 exit status<br>
>>>>>> make[2]: *** [bin/pdal_plugin_manager_test] Error 1<br>
>>>>>> make[1]: *** [test/unit/CMakeFiles/pdal_<wbr>plugin_manager_test.dir/all] Error 2<br>
>>>>>> make: *** [all] Error 2<br>
>>>>>><br>
>>>>>><br>
>>>>>> I’m wondering if anyone has run into this, if so, is there a work around?<br>
>>>>><br>
>>>>> I suspect your compiler is too old. Which compiler are you using and which version?<br>
>>>>><br>
>>>>> Howard<br>
>>>><br>
>>>> ______________________________<wbr>_________________<br>
>>>> pdal mailing list<br>
>>>> <a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
>>>> <a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Andrew Bell<br>
>>>> <a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</a><br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> pdal mailing list<br>
>>> <a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
>>> <a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a><br>
>><br>
><br>
> ______________________________<wbr>_________________<br>
> pdal mailing list<br>
> <a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a><br>
<br>
______________________________<wbr>_________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/pdal</a></div></div></blockquote></div><br></div>