Hi Tiangang,

I updated SPDLib to use LASlib in the latest version, see this pull request for more details and justification: https://bitbucket.org/petebunting/spdlib/pull-requests/1. As part of this the code was also updated for GDAL 2.

To compile the latest version of SPDLib you need GDAL 2 or later and LAStools from https://github.com/LAStools/LAStools. The makefile for LAStools doesn't include an install command so you will need to manually copy the library and header files or pass their location to CMake.

To get a version for SPDLib which works with LASlib you need to need to checkout the version tagged as 'Version_3_2'. This requires GDAL <= 1.11 and libLAS version 1.7, the code wasn't updated to work with libLAS 1.8.

Hope this helps,

Dan

On 27/10/16 10:46, Tiangang Yin wrote:
Dear Pete and Dan,


Thank you very much for your prompt reply. Yesterday, I succeeded to compile the stable version of spdlib (20130504) by reverting the gdal and liblas to older versions. I would appreciate if I can get more instructions about laslib compilation and installation. At the same time, I will try to work with conda.



Regards,

Tiangang


On Thu, Oct 27, 2016 at 3:36 PM, Pete Bunting <petebunt...@mac.com <mailto:petebunt...@mac.com>> wrote:

    Dear Tiangang,

    We have moved SPDLib away from using LibLAS
    (http://www.liblas.org) to using laslib (i.e., from lastools;
    https://github.com/LAStools/LAStools
    <https://github.com/LAStools/LAStools>) as it supports LAS 1.3
    with waveforms.

    Dan Clewley (cc’d), compete led this work so he might be able to
    provide advice on the best way to compile laslib.

    Alternatively, we make binary versions available via conda. If you
    install miniconda (http://conda.pydata.org/miniconda.html
    <http://conda.pydata.org/miniconda.html>) and the run:

    conda install -c conda-forge -c rios spdlib

    Then it will install the latest version of SPDLib.

    Many thanks,

    Pete



    On 26 Oct 2016, at 08:19, Tiangang Yin <tiangang.yin...@gmail.com
    <mailto:tiangang.yin...@gmail.com>> wrote:

    Dear Dr. Bunting,


    My name is Tiangang from CESBIO laboratory of Toulouse. I have
    several questions related to the SPDlib installation, and I hope
    you could help me.

    2 years ago, I was using the SPDlib to process our simulated
    LiDAR data. It was working fine. Recently, I tried to reinstall
    SPDlib on my new computer using the latest commit from

    hg clone https://bitbucket.org/petebunting/spdlib
    <https://bitbucket.org/petebunting/spdlib> spdlib

    The installation gives me several missing functions referring to
    several functions and includes files from LAStools
    (https://rapidlasso.com/lastools/
    <https://rapidlasso.com/lastools/>), or maybe libLAS.

    For example, the compilation error shows:

    In file included from
    /home/ctpp/GIT/spdlib/include/spd/SPDIOFactory.h:43:0,
                     from
    /home/ctpp/GIT/spdlib/src/spd/SPDIOFactory.cpp:24:
    /home/ctpp/GIT/spdlib/include/spd/SPDLASFileImporter.h:33:25:
    fatal error: lasreader.hpp: No such file or directory
     #include <lasreader.hpp>
     ^
    compilation terminated.
    make[2]: *** [src/CMakeFiles/spd.dir/spd/SPDIOFactory.cpp.o] Error 1
    make[1]: *** [src/CMakeFiles/spd.dir/all] Error 2
    make: *** [all] Error 2

    The lasreader.hpp has already been removed from libLAS 1.7.0, and
    the latest version of libLAS is 1.8.1.
    I can imagine that SPDlib might need a specific version of libLAS
    to compile in the latest version. However, I can not find any
    instructions on how the installation of configuration of LAStools
    for successful compilation of SPDlib. For libLAS, I think several
    functions changes from the latest version of the library. Could
    you let me know what version of libLAS are you using, or any
    instructions to install LAStools?

    I would also appreciate if you can suggest on the versions of all
    the dependencies of spdlib, including:

    CGAL
    gdal
    gmp
    gsl
    hdf5
    laszip
    libLAS
    mpfr
    proj
    qt
    xerces
    zlib


    Best Regards,

-- Tiangang
    tiangang.yin...@gmail.com <mailto:tiangang.yin...@gmail.com>




--
Tiangang
tiangang.yin...@gmail.com <mailto:tiangang.yin...@gmail.com>


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik


_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop



Please visit our new website at www.pml.ac.uk and follow us on Twitter 
@PlymouthMarine

Winner of the Environment & Conservation category, the Charity Awards 2014.

Plymouth Marine Laboratory (PML) is a company limited by guarantee registered in England & Wales, company number 4178503. Registered Charity No. 1091222. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK.
This message is private and confidential. If you have received this message in 
error, please notify the sender and remove it from your system. You are 
reminded that e-mail communications are not secure and may contain viruses; PML 
accepts no liability for any loss or damage which may be caused by viruses.

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to