[pdal] Can't build PDAL on debian; c++ warning in Ilvis2MetadataReader treated as error

Howard Butler howard at hobu.co
Sun Feb 14 07:39:51 PST 2016


Jo,

Has whomever is in charge of the UK LiDAR data released actual point clouds yet?

Howard

> On Feb 14, 2016, at 9:38 AM, Jo Walsh <metazool at fastmail.net> wrote:
> 
> Fantastic! That worked, and my PDAL build is rattling happily away :)
>  
> Thanks Connor!
>  
> On Sun, Feb 14, 2016, at 02:37 PM, Connor Manning wrote:
>> This should be fixed in https://github.com/PDAL/PDAL/commit/57be828, so please re-pull and try again.
>>  
>> On Sun, Feb 14, 2016 at 7:51 AM, Jo Walsh <metazool at fastmail.net> wrote:
>> dear PDAL hackers,
>>  
>> Thanks for your work. I'm very new to PDAL and not a C++ hacker, so I'm
>> a bit stumped by the following error when I try to build PDAL on debian
>> wheezy. Please excuse me if it turns out to be a basic configuration
>> thing :/
>>  
>>   [  4%] Building CXX object
>>   io/ilvis2/CMakeFiles/reader_ilvis2.dir/Ilvis2MetadataReader.cpp.o
>>   /home/jo/PDAL/io/ilvis2/Ilvis2MetadataReader.cpp: In member function
>>   ‘bool pdal::Ilvis2MetadataReader::nodeElementIs(xmlNodePtr,
>>   std::string)’:
>>   /home/jo/PDAL/io/ilvis2/Ilvis2MetadataReader.cpp:629:60: error: cast
>>   from type ‘const char*’ to type ‘xmlChar* {aka unsigned char*}’ casts
>>   away qualifiers [-Werror=cast-qual]
>>      return (xmlStrcmp(node->name, (xmlChar*)expected.c_str()) == 0);
>>                                                             ^
>> cc1plus: all warnings being treated as errors
>> io/ilvis2/CMakeFiles/reader_ilvis2.dir/build.make:77: recipe for target
>> 'io/ilvis2/CMakeFiles/reader_ilvis2.dir/Ilvis2MetadataReader.cpp.o'
>> failed
>>  
>> I have LIBXML2. I can't see what's going wrong from this but I notice
>> that it's relatively new work:
>> https://github.com/PDAL/PDAL/blob/master/io/ilvis2/Ilvis2MetadataReader.cpp#L629
>>  
>> Any advice would be appreciated, I really want to play with PDAL!
>> 
>> 
>> --
>>   Jo Walsh
>> metazool at fastmail.net
>> _______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/pdal
>  
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal



More information about the pdal mailing list