[Liblas-devel] ilbLAS-1.7.0b2's Compilation
sear
tianyewuwei at gmail.com
Thu Nov 24 07:59:15 EST 2011
hello , everyone!
I am a newbie, when i compile laszip-2.0.1 and libLAS-1.7.0b2 on ubuntu
11.04 's terminator using " cmake . " " make" . when i used the following
code , a error has happen.
http://liblas.org/tutorial/cpp.html example
#include <liblas/liblas.hpp>
#include <algorithm>
#include <exception>
#include <iostream>
using namespace liblas;
int main()
{
try
{
std::ifstream ifs("input.las", std::ios::in | std::ios::binary);
std::ofstream ofs("output.las", std::ios::out | std::ios::binary);
liblas::Reader reader(ifs);
liblas::Writer writer(ofs, reader.GetHeader());
std::copy(liblas::lasreader_iterator(reader),
liblas::lasreader_iterator(),
liblas::laswriter_iterator(writer));
}
catch (std::exception const& e)
{
std::cerr << "Error: " << e.what() << std::endl;
}
Error: LASzip compression support not enabled in this libLAS configuration.
i think error is in compiled libLAS with laszip , how can i compile libLAS
with laszip ,thanks !!!
--
View this message in context: http://liblas-developers.431198.n3.nabble.com/ilbLAS-1-7-0b2-s-Compilation-tp3533561p3533561.html
Sent from the libLAS Developers mailing list archive at Nabble.com.
More information about the Liblas-devel
mailing list