[pdal] compile error on master
Bradley Chambers
brad.chambers at gmail.com
Tue Dec 16 05:26:58 PST 2014
Can you try pulling from master? This was fixed yesterday.
On Tue, Dec 16, 2014 at 8:24 AM, Brutovski, Robert - Exelis <
Robert.Brutovski at exelisinc.com> wrote:
>
> I saw the same issue. What I ended up doing was to add a “#ifdef
> PDAL_HAVE_LAZPERF” statement on line 128 and a #endif on line 204. This
> seems to match the #ifdef at the top of the file around the #include’s for
> laz. Just my two cents.
>
>
>
> Rob B.
>
>
>
> *From:* pdal-bounces at lists.osgeo.org [mailto:pdal-bounces at lists.osgeo.org]
> *On Behalf Of *Stefan Ziegler
> *Sent:* Sunday, December 14, 2014 6:37 AM
> *To:* pdal at lists.osgeo.org
> *Subject:* [pdal] compile error on master
>
>
>
> Hi
>
> I get some errors when trying to compile pdal:
>
> [ 96%] Built target pdalcpp
> [ 97%] Building CXX object
> plugins/pgpointcloud/CMakeFiles/pdal_plugin_reader_pgpointcloud.dir/io/PgReader.cpp.o
> In file included from
> /home/stefan/Develop/src/pdal/plugins/pgpointcloud/io/PgCommon.hpp:43:0,
> from
> /home/stefan/Develop/src/pdal/plugins/pgpointcloud/io/PgReader.hpp:42,
> from
> /home/stefan/Develop/src/pdal/plugins/pgpointcloud/io/PgReader.cpp:36:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:160:13: error:
> ‘laszip’ does not name a type
> typedef laszip::encoders::arithmetic<OutputStream> Encoder;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:161:5: error:
> ‘Encoder’ does not name a type
> Encoder m_encoder;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:162:22: error:
> ‘laszip’ has not been declared
> typedef typename
> laszip::formats::dynamic_field_compressor<Encoder>::ptr
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:162:63: error:
> expected unqualified-id before ‘<’ token
> typedef typename
> laszip::formats::dynamic_field_compressor<Encoder>::ptr
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:164:5: error:
> ‘Compressor’ does not name a type
> Compressor m_compressor;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: In constructor
> ‘pdal::LazPerfCompressor<OutputStream>::LazPerfCompressor(OutputStream&,
> const ExtDimTypeList&)’:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:133:9: error:
> class ‘pdal::LazPerfCompressor<OutputStream>’ does not have any field named
> ‘m_encoder’
> m_encoder(output),
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:134:9: error:
> class ‘pdal::LazPerfCompressor<OutputStream>’ does not have any field named
> ‘m_compressor’
> m_compressor(laszip::formats::make_dynamic_compressor(m_encoder)),
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:134:22: error:
> ‘laszip’ has not been declared
> m_compressor(laszip::formats::make_dynamic_compressor(m_encoder)),
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:134:63: error:
> ‘m_encoder’ was not declared in this scope
> m_compressor(laszip::formats::make_dynamic_compressor(m_encoder)),
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:136:31: error:
> ‘m_compressor’ was not declared in this scope
> { m_pointSize = addFields(m_compressor, dims); }
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: In member
> function ‘pdal::point_count_t
> pdal::LazPerfCompressor<OutputStream>::compress(char*, size_t)’:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:150:13: error:
> ‘m_compressor’ was not declared in this scope
> m_compressor->compress(inbuf);
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: In member
> function ‘void pdal::LazPerfCompressor<OutputStream>::done()’:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:157:11: error:
> ‘m_encoder’ was not declared in this scope
> { m_encoder.done(); }
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: At global
> scope:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:195:13: error:
> ‘laszip’ does not name a type
> typedef laszip::decoders::arithmetic<InputStream> Decoder;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:196:5: error:
> ‘Decoder’ does not name a type
> Decoder m_decoder;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:197:22: error:
> ‘laszip’ has not been declared
> typedef typename
> laszip::formats::dynamic_field_decompressor<Decoder>::ptr
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:197:65: error:
> expected unqualified-id before ‘<’ token
> typedef typename
> laszip::formats::dynamic_field_decompressor<Decoder>::ptr
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:199:5: error:
> ‘Decompressor’ does not name a type
> Decompressor m_decompressor;
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: In constructor
> ‘pdal::LazPerfDecompressor<InputStream>::LazPerfDecompressor(InputStream&,
> const ExtDimTypeList&)’:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:174:9: error:
> class ‘pdal::LazPerfDecompressor<InputStream>’ does not have any field
> named ‘m_decoder’
> m_decoder(input),
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:175:9: error:
> class ‘pdal::LazPerfDecompressor<InputStream>’ does not have any field
> named ‘m_decompressor’
>
> m_decompressor(laszip::formats::make_dynamic_decompressor(m_decoder))
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:175:24: error:
> ‘laszip’ has not been declared
>
> m_decompressor(laszip::formats::make_dynamic_decompressor(m_decoder))
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:175:67: error:
> ‘m_decoder’ was not declared in this scope
>
> m_decompressor(laszip::formats::make_dynamic_decompressor(m_decoder))
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:176:31: error:
> ‘m_decompressor’ was not declared in this scope
> { m_pointSize = addFields(m_decompressor, dims); }
> ^
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp: In member
> function ‘pdal::point_count_t
> pdal::LazPerfDecompressor<InputStream>::decompress(char*, size_t)’:
> /home/stefan/Develop/src/pdal/include/pdal/Compression.hpp:187:13: error:
> ‘m_decompressor’ was not declared in this scope
> m_decompressor->decompress(outbuf);
> ^
> make[2]: ***
> [plugins/pgpointcloud/CMakeFiles/pdal_plugin_reader_pgpointcloud.dir/io/PgReader.cpp.o]
> Error 1
> make[1]: ***
> [plugins/pgpointcloud/CMakeFiles/pdal_plugin_reader_pgpointcloud.dir/all]
> Error 2
> make: *** [all] Error 2
>
> Any ideas what's wrong/missing?
>
> best regards
> Stefan
>
> ------------------------------
>
> This e-mail and any files transmitted with it may be proprietary and are
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this e-mail in error please notify the
> sender. Please note that any views or opinions presented in this e-mail are
> solely those of the author and do not necessarily represent those of Exelis
> Inc. The recipient should check this e-mail and any attachments for the
> presence of viruses. Exelis Inc. accepts no liability for any damage caused
> by any virus transmitted by this e-mail.
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20141216/741ffb45/attachment.html>
More information about the pdal
mailing list