[Liblas-devel] ilbLAS-1.7.0b2's Compilation
Philipp
games at philipp.info
Thu Nov 24 08:02:41 EST 2011
Hi,
Maybe you can use "cmake-gui" on ubuntu (or do you have Terminal ubuntu
only?) and set the "WITH_LASZIP" flag when you press the "configure"
button and change the include/lib path for it.
Or you take the pre-made examples from hobu and mpg (hobu-config.bat /
mpg-config.bat) and look for the needed flags.
But be aware that you need the latest laszip to compile successfully liblas.
Philipp
> 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.
> _______________________________________________
> Liblas-devel mailing list
> Liblas-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/liblas-devel
>
More information about the Liblas-devel
mailing list