[QGIS-Developer] not building against pdal 2.4.0rc1

Saulteau Don sault.don at gmail.com
Sat Mar 19 09:17:00 PDT 2022


Trying to build qgis from the 3.24 release branch on github and testing
against pdal 2.4.0rc1.

It fails with the following about a missing pdal function no longer exists:

[ 39%] Automatic MOC for target provider_pdal
> [ 39%] Built target provider_pdal_autogen
> [ 39%] Building CXX object
> src/providers/pdal/CMakeFiles/provider_pdal.dir/provider_pdal_autogen/mocs_compilation.cpp.o
> [ 39%] Building CXX object
> src/providers/pdal/CMakeFiles/provider_pdal.dir/qgspdalprovider.cpp.o
> /build/qgis/src/qgis/src/providers/pdal/qgspdalprovider.cpp: In member
> function ‘bool QgsPdalProvider::load(const QString&)’:
> /build/qgis/src/qgis/src/providers/pdal/qgspdalprovider.cpp:235:58: error:
> use of deleted function ‘pdal::LasHeader::LasHeader(const pdal::LasHeader&)’
>   235 |     const pdal::LasHeader las_header = las_reader.header();
>       |                                                          ^
> In file included from
> /build/qgis/src/qgis/src/providers/pdal/qgspdalprovider.cpp:32:
> /usr/include/pdal/io/LasHeader.hpp:70:16: note:
> ‘pdal::LasHeader::LasHeader(const pdal::LasHeader&)’ is implicitly deleted
> because the default definition would be ill-formed:
>    70 | class PDAL_DLL LasHeader
>       |                ^~~~~~~~~
> /usr/include/pdal/io/LasHeader.hpp:70:16: error: use of deleted function
> ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&)
> [with _Tp = pdal::LasHeader::Private; _Dp =
> std::default_delete<pdal::LasHeader::Private>]’
> In file included from /usr/include/c++/11.2.0/memory:76,
>                  from /build/qgis/src/qgis/src/core/qgis.h:24,
>                  from
> /build/qgis/src/qgis/src/providers/pdal/qgspdalprovider.cpp:18:
> /usr/include/c++/11.2.0/bits/unique_ptr.h:468:7: note: declared here
>   468 |       unique_ptr(const unique_ptr&) = delete;
>       |       ^~~~~~~~~~
> make[2]: ***
> [src/providers/pdal/CMakeFiles/provider_pdal.dir/build.make:90:
> src/providers/pdal/CMakeFiles/provider_pdal.dir/qgspdalprovider.cpp.o]
> Error 1
> make[1]: *** [CMakeFiles/Makefile2:7798:
> src/providers/pdal/CMakeFiles/provider_pdal.dir/all] Error 2
> make: *** [Makefile:166: all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220319/842a2223/attachment.html>


More information about the QGIS-Developer mailing list