libLAS
libLAS copied to clipboard
make error
Scanning dependencies of target las [ 1%] Building CXX object src/CMakeFiles/las.dir/header.cpp.o /home/wy/env/libLAS-1.8.0/src/header.cpp: In copy constructor ‘liblas::Header::Header(const liblas::Header&)’: /home/wy/env/libLAS-1.8.0/src/header.cpp:105:11: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] void* p = 0; ^ /home/wy/env/libLAS-1.8.0/src/header.cpp: In member function ‘liblas::Header& liblas::Header::operator=(const liblas::Header&)’: /home/wy/env/libLAS-1.8.0/src/header.cpp:124:15: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] void* p = 0; ^ [ 2%] Building CXX object src/CMakeFiles/las.dir/index.cpp.o [ 4%] Building CXX object src/CMakeFiles/las.dir/point.cpp.o [ 5%] Building CXX object src/CMakeFiles/las.dir/reader.cpp.o [ 6%] Building CXX object src/CMakeFiles/las.dir/spatialreference.cpp.o In file included from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/xml_parser.hpp:15:0, from /home/wy/env/libLAS-1.8.0/src/spatialreference.cpp:72: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_comment(std::basic_ostream<Ch>&, const std::__cxx11::basic_string<_CharT>&, int, bool, const liblas::property_tree::xml_parser::xml_writer_settings<Ch>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:38:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_element(std::basic_ostream<typename Ptree::key_type::value_type>&, const std::__cxx11::basic_string<typename Ptree::key_type::value_type>&, const Ptree&, int, const liblas::property_tree::xml_parser::xml_writer_settings<typename Ptree::key_type::value_type>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:72:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ [ 8%] Building CXX object src/CMakeFiles/las.dir/schema.cpp.o In file included from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/xml_parser.hpp:15:0, from /home/wy/env/libLAS-1.8.0/src/schema.cpp:50: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_comment(std::basic_ostream<Ch>&, const std::__cxx11::basic_string<_CharT>&, int, bool, const liblas::property_tree::xml_parser::xml_writer_settings<Ch>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:38:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_element(std::basic_ostream<typename Ptree::key_type::value_type>&, const std::_cxx11::basic_string<typename Ptree::key_type::value_type>&, const Ptree&, int, const liblas::property_tree::xml_parser::xml_writer_settings<typename Ptree::key_type::value_type>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:72:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ [ 9%] Building CXX object src/CMakeFiles/las.dir/transform.cpp.o [ 10%] Building CXX object src/CMakeFiles/las.dir/utility.cpp.o [ 12%] Building CXX object src/CMakeFiles/las.dir/variablerecord.cpp.o [ 13%] Building CXX object src/CMakeFiles/las.dir/writer.cpp.o [ 15%] Building CXX object src/CMakeFiles/las.dir/version.cpp.o [ 16%] Building CXX object src/CMakeFiles/las.dir/detail/utility.cpp.o [ 17%] Building CXX object src/CMakeFiles/las.dir/detail/sha1.cpp.o [ 19%] Building CXX object src/CMakeFiles/las.dir/detail/zippoint.cpp.o [ 20%] Building CXX object src/CMakeFiles/las.dir/detail/reader/header.cpp.o [ 21%] Building CXX object src/CMakeFiles/las.dir/detail/reader/reader.cpp.o [ 23%] Building CXX object src/CMakeFiles/las.dir/detail/reader/zipreader.cpp.o [ 24%] Building CXX object src/CMakeFiles/las.dir/detail/reader/cachedreader.cpp.o [ 26%] Building CXX object src/CMakeFiles/las.dir/detail/writer/header.cpp.o [ 27%] Building CXX object src/CMakeFiles/las.dir/detail/writer/point.cpp.o [ 28%] Building CXX object src/CMakeFiles/las.dir/detail/writer/zipwriter.cpp.o [ 30%] Building CXX object src/CMakeFiles/las.dir/detail/writer/writer.cpp.o [ 31%] Linking CXX shared library ../bin/Release/liblas.so [ 43%] Built target las Scanning dependencies of target las_c [ 45%] Building CXX object src/CMakeFiles/las_c.dir/c_api.cpp.o In file included from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/xml_parser.hpp:15:0, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:58: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_comment(std::basic_ostream<Ch>&, const std::cxx11::basic_string<CharT>&, int, bool, const liblas::property_tree::xml_parser::xml_writer_settings<Ch>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:38:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp: In function ‘void liblas::property_tree::xml_parser::write_xml_element(std::basic_ostream<typename Ptree::key_type::value_type>&, const std::cxx11::basic_string<typename Ptree::key_type::value_type>&, const Ptree&, int, const liblas::property_tree::xml_parser::xml_writer_settings<typename Ptree::key_type::value_type>&)’: /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/detail/xml_parser_write.hpp:72:48: warning: typedef ‘Str’ locally defined but not used [-Wunused-local-typedefs] typedef typename std::basic_string<Ch> Str; ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp: In function ‘LASPointHS* LASReader_GetNextPoint(LASReaderH)’: /home/wy/env/libLAS-1.8.0/src/c_api.cpp:367:52: warning: cast from type ‘const liblas::Point*’ to type ‘LASPointH {aka LASPointHS*}’ casts away qualifiers [-Wcast-qual] return (LASPointH) &(reader->GetPoint()); ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp: In function ‘LASPointHS* LASReader_GetPointAt(LASReaderH, uint32_t)’: /home/wy/env/libLAS-1.8.0/src/c_api.cpp:388:52: warning: cast from type ‘const liblas::Point*’ to type ‘LASPointH {aka LASPointHS*}’ casts away qualifiers [-Wcast-qual] return (LASPointH) &(reader->GetPoint()); ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp: In function ‘LASErrorEnum LASReader_SetOutputSRS(LASReaderH, LASSRSH)’: /home/wy/env/libLAS-1.8.0/src/c_api.cpp:501:74: error: ‘1’ was not declared in this scope boost::bind( &IsReprojectionTransform, 1 ) ), ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp:501:74: note: suggested alternatives: In file included from /usr/local/include/boost/mpl/aux/include_preprocessed.hpp:37:0, from /usr/local/include/boost/mpl/placeholders.hpp:43, from /usr/local/include/boost/mpl/apply.hpp:24, from /usr/local/include/boost/mpl/aux/iter_apply.hpp:17, from /usr/local/include/boost/mpl/aux/find_if_pred.hpp:14, from /usr/local/include/boost/mpl/find_if.hpp:17, from /usr/local/include/boost/mpl/find.hpp:17, from /usr/local/include/boost/mpl/aux/contains_impl.hpp:20, from /usr/local/include/boost/mpl/contains.hpp:20, from /usr/local/include/boost/multi_index_container.hpp:26, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:21, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::1’ typedef arg<1> 1; ^ /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::1’ In file included from /usr/local/include/boost/bind/bind.hpp:2356:0, from /usr/local/include/boost/multi_index/sequenced_index.hpp:17, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:23, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/bind/placeholders.hpp:46:38: note: ‘boost::placeholders::1’ BOOST_STATIC_CONSTEXPR boost::arg<1> 1; ^ In file included from /usr/local/include/boost/lambda/lambda.hpp:14:0, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:98: /usr/local/include/boost/lambda/core.hpp:71:60: note: ‘boost::lambda::{anonymous}::1’ boost::lambda::placeholder1_type& BOOST_ATTRIBUTE_UNUSED 1 = free1; ^ /usr/local/include/boost/lambda/core.hpp:71:60: note: ‘boost::lambda::{anonymous}::1’ In file included from /usr/local/include/boost/mpl/aux/include_preprocessed.hpp:37:0, from /usr/local/include/boost/mpl/placeholders.hpp:43, from /usr/local/include/boost/mpl/apply.hpp:24, from /usr/local/include/boost/mpl/aux/iter_apply.hpp:17, from /usr/local/include/boost/mpl/aux/find_if_pred.hpp:14, from /usr/local/include/boost/mpl/find_if.hpp:17, from /usr/local/include/boost/mpl/find.hpp:17, from /usr/local/include/boost/mpl/aux/contains_impl.hpp:20, from /usr/local/include/boost/mpl/contains.hpp:20, from /usr/local/include/boost/multi_index_container.hpp:26, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:21, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::1’ typedef arg<1> 1; ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp: In function ‘LASErrorEnum LASWriter_SetOutputSRS(LASWriterH, LASSRSH)’: /home/wy/env/libLAS-1.8.0/src/c_api.cpp:1843:74: error: ‘1’ was not declared in this scope boost::bind( &IsReprojectionTransform, 1 ) ), ^ /home/wy/env/libLAS-1.8.0/src/c_api.cpp:1843:74: note: suggested alternatives: In file included from /usr/local/include/boost/mpl/aux/include_preprocessed.hpp:37:0, from /usr/local/include/boost/mpl/placeholders.hpp:43, from /usr/local/include/boost/mpl/apply.hpp:24, from /usr/local/include/boost/mpl/aux/iter_apply.hpp:17, from /usr/local/include/boost/mpl/aux/find_if_pred.hpp:14, from /usr/local/include/boost/mpl/find_if.hpp:17, from /usr/local/include/boost/mpl/find.hpp:17, from /usr/local/include/boost/mpl/aux/contains_impl.hpp:20, from /usr/local/include/boost/mpl/contains.hpp:20, from /usr/local/include/boost/multi_index_container.hpp:26, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:21, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::1’ typedef arg<1> 1; ^ /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::1’ In file included from /usr/local/include/boost/bind/bind.hpp:2356:0, from /usr/local/include/boost/multi_index/sequenced_index.hpp:17, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:23, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/bind/placeholders.hpp:46:38: note: ‘boost::placeholders::1’ BOOST_STATIC_CONSTEXPR boost::arg<1> 1; ^ In file included from /usr/local/include/boost/lambda/lambda.hpp:14:0, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:98: /usr/local/include/boost/lambda/core.hpp:71:60: note: ‘boost::lambda::{anonymous}::1’ boost::lambda::placeholder1_type& BOOST_ATTRIBUTE_UNUSED 1 = free1; ^ /usr/local/include/boost/lambda/core.hpp:71:60: note: ‘boost::lambda::{anonymous}::1’ In file included from /usr/local/include/boost/mpl/aux/include_preprocessed.hpp:37:0, from /usr/local/include/boost/mpl/placeholders.hpp:43, from /usr/local/include/boost/mpl/apply.hpp:24, from /usr/local/include/boost/mpl/aux/iter_apply.hpp:17, from /usr/local/include/boost/mpl/aux/find_if_pred.hpp:14, from /usr/local/include/boost/mpl/find_if.hpp:17, from /usr/local/include/boost/mpl/find.hpp:17, from /usr/local/include/boost/mpl/aux/contains_impl.hpp:20, from /usr/local/include/boost/mpl/contains.hpp:20, from /usr/local/include/boost/multi_index_container.hpp:26, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/external/property_tree/ptree.hpp:21, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/schema.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/point.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/bounds.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/header.hpp:47, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/reader.hpp:46, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/iterator.hpp:45, from /home/wy/env/libLAS-1.8.0/src/../include/liblas/liblas.hpp:50, from /home/wy/env/libLAS-1.8.0/src/c_api.cpp:54: /usr/local/include/boost/mpl/aux/preprocessed/gcc/placeholders.hpp:29:16: note: ‘mpl::_1’ typedef arg<1> _1; ^ src/CMakeFiles/las_c.dir/build.make:62: recipe for target 'src/CMakeFiles/las_c.dir/c_api.cpp.o' failed make[2]: *** [src/CMakeFiles/las_c.dir/c_api.cpp.o] Error 1 CMakeFiles/Makefile2:119: recipe for target 'src/CMakeFiles/las_c.dir/all' failed make[1]: *** [src/CMakeFiles/las_c.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
This project seems to be in maintenance only mode, so you may not expect many answers from developers. Yet, looking at the error something seems odd with your compilation. I see the error:
/home/wy/env/libLAS-1.8.0/src/c_api.cpp:501:74: error: ‘1’ was not declared in this scope boost::bind( &IsReprojectionTransform, 1 ) ),
The actual code says:
boost::bind( &IsReprojectionTransform, _1)
Note the underscore in front of 1. Your own code is missing it.
This is a very standard call to boost::bind, and any boost version or compiler released in the last 6 years should be able to compile this code. I wonder if you can share your OS, boost version, compiler, and its version. I will also suggest you clone the latest code from GitHub. You seem to be using 1.8.0 from 6 years ago.