[pdal] PDAL 1.4 compile error
Alex Jokela
alex at camulus.com
Tue Mar 14 14:57:10 PDT 2017
Adam-
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.
-Alex
> On Mar 14, 2017, at 5:47 PM, Adam Steer <Adam.Steer at anu.edu.au> wrote:
>
> Alex, all
>
> 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:
>
> https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/
>
> This was a hacky ‘gotta get it going’ solution, but it worked. Migrating to centOS 7 removed the need to use the devtoolset.
>
> Adam
>
>
>> On 15 Mar 2017, at 8:35 am, Alex Jokela <alex at camulus.com> wrote:
>>
>> Andrew-
>>
>> Thanks for the reply.
>>
>>
>> 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.
>>
>> Let me know if you push the change you mentioned for a work around.
>>
>> Thanks!
>>
>> -Alex
>>
>>> On Mar 14, 2017, at 5:21 PM, Andrew Bell <andrew.bell.ia at gmail.com> wrote:
>>>
>>> Alex,
>>>
>>> This indeed seems to be a bug in your compiler: http://stackoverflow.com/questions/35131734/undefined-reference-when-using-lambda
>>>
>>> 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.
>>>
>>>
>>> On Tue, Mar 14, 2017 at 4:05 PM, Alex Jokela <alex at camulus.com> wrote:
>>> Howard-
>>>
>>> It looks to be version 4.7.2
>>>
>>> Thanks,
>>>
>>> -Alex
>>>
>>>> On Mar 14, 2017, at 4:56 PM, Howard Butler <howard at hobu.co> wrote:
>>>>
>>>>
>>>>> On Mar 14, 2017, at 3:34 PM, Alex Jokela <alex at camulus.com> wrote:
>>>>>
>>>>> Hello-
>>>>>
>>>>> I’m trying to compile PDAL 1.4.0, and I’m running into a compile-time error:
>>>>>
>>>>> CMakeFiles/pdal_plugin_manager_test.dir/PluginManagerTest.cpp.o: In function `pdal::DummyPlugin::initPlugin()::{lambda()#1}::operator int (*)()() const':
>>>>> PluginManagerTest.cpp:(.text._ZZN4pdal11DummyPlugin10initPluginEvENKUlvE_cvPFivEEv[_ZZN4pdal11DummyPlugin10initPluginEvENKUlvE_cvPFivEEv]+0x9): undefined reference to `pdal::DummyPlugin::initPlugin()::{lambda()#1}::_FUN()'
>>>>> collect2: error: ld returned 1 exit status
>>>>> make[2]: *** [bin/pdal_plugin_manager_test] Error 1
>>>>> make[1]: *** [test/unit/CMakeFiles/pdal_plugin_manager_test.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> I’m wondering if anyone has run into this, if so, is there a work around?
>>>>
>>>> I suspect your compiler is too old. Which compiler are you using and which version?
>>>>
>>>> Howard
>>>
>>> _______________________________________________
>>> pdal mailing list
>>> pdal at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>>
>>>
>>>
>>> --
>>> Andrew Bell
>>> andrew.bell.ia at gmail.com
>>
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pdal
>
More information about the pdal
mailing list