Dear Pete and Dan, Thank you very much for the above instructions. I did not succeed to compile spdlib from source code, but I succeeded to install the executables from conda. As far as I understand, conda would automatically install all the dependencies that are needed by SPDlib.
However, I can not find the python binding file "spdpy.so" from anywhere. I suppose that conda would only install the compiled binaries instead of python binding. Am I right? Therefore, I hg cloned the repository and compiled the python folder. It compiles successfully, but when I import spdpy The following error message shows: ImportError: /usr/local/site-packages/spdpy.so: undefined symbol: _ZN6spdlib13SPDFileReader14readHeaderInfoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_7SPDFileE I wonder if you have any idea what happens? I also tried to compile spdlib source code after conda figured out all the dependancies, and I got an error message for HDF5: src/libspdio.so.3.0.0: undefined reference to `H5::H5Location::createAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, H5::DataType const&, H5::DataSpace const&, H5::PropList const&) const' src/libspdio.so.3.0.0: undefined reference to `H5::H5File::H5File(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, H5::FileCreatPropList const&, H5::FileAccPropList const&)' src/libspdio.so.3.0.0: undefined reference to `H5::CompType::insertMember(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, H5::DataType const&) const' src/libspdio.so.3.0.0: undefined reference to `H5::CommonFG::createDataSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, H5::DataType const&, H5::DataSpace const&, H5::DSetCreatPropList const&) const' src/libspdio.so.3.0.0: undefined reference to `H5::CommonFG::createGroup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long) const' src/libspdio.so.3.0.0: undefined reference to `H5::Attribute::write(H5::DataType const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' src/libspdio.so.3.0.0: undefined reference to `H5::CommonFG::openDataSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' collect2: error: ld returned 1 exit status CMakeFiles/spdtileimg.dir/build.make:98: recipe for target 'spdtileimg' failed make[2]: *** [spdtileimg] Error 1 CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/spdtileimg.dir/all' failed make[1]: *** [CMakeFiles/spdtileimg.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 It seems like that there is am version conflict with HDF5... I wonder how can I get python binding working with conda installation. Otherwise I can not use the python importers to convert other files into SPD format. BTW, I also would like to know if the point viewer is also compiled with Conda. Do I need to install that from https://sourceforge.net/projects/spdpointsviewer/ ? I appreciate again all your help. Sincerely, Tiangang On Thu, Oct 27, 2016 at 7:02 PM, Daniel Clewley <d...@pml.ac.uk> wrote: > 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> wrote: > >> Dear Tiangang, >> >> We have moved SPDLib away from using LibLAS ( <http://www.liblas.org> >> http://www.liblas.org) to using laslib (i.e., from 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> >> 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 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 >> >> >> > > > -- > Tiangang > 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 > listspdlib-develop@lists.sourceforge.nethttps://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. > > -- Tiangang tiangang.yin...@gmail.com
------------------------------------------------------------------------------
_______________________________________________ spdlib-develop mailing list spdlib-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spdlib-develop