[Liblas-devel] Issues with Linking

Sean Baskin seanbaskin at gmail.com
Wed Jun 19 17:58:00 PDT 2013


All of the tools included in lasLib cannot link to the dynamic libraries.
Below is the workflow I followed:

# Install Boost libraries
sudo tar -xvzf boost_1_53_0.tar.gz -C /opt
cd /opt/boost_1_53_0/
sudo ./bootstrap.sh
sudo ./b2

# Install cmake
sudo tar -xvzf cmake-2.8.11.1.tar.gz -C /opt
cd /opt/cmake-2.8.11.1/
sudo ./bootstrap
sudo make && sudo make install

#Install libLAS
sudo tar -xf libLAS-1.7.0.tar.gz -C /opt/
cd /opt/libLAS-1.7.0/
sudo mkdir makefiles
cd makefiles/
sudo cmake -G "Unix Makefiles" -DBOOST_ROOT=/opt/boost_1_53_0 ../
sudo make
sudo make install

Towards the end of the make install is this output

Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/share/liblas/doc/AUTHORS
-- Installing: /usr/local/share/liblas/doc/COPYING
-- Installing: /usr/local/share/liblas/doc/INSTALL
-- Installing: /usr/local/share/liblas/doc/LICENSE.txt
-- Installing: /usr/local/share/liblas/doc/README.txt
-- Installing: /usr/local/lib/liblas.so.2.2.0
-- Installing: /usr/local/lib/liblas.so
-- Removed runtime path from "/usr/local/lib/liblas.so.2.2.0"
-- Installing: /usr/local/lib/liblas_c.so.2.2.0
-- Installing: /usr/local/lib/liblas_c.so
-- Removed runtime path from "/usr/local/lib/liblas_c.so.2.2.0"
-- Installing: /usr/local/include/liblas
-- Installing: /usr/local/include/liblas/writer.hpp
-- Installing: /usr/local/include/liblas/filter.hpp
-- Installing: /usr/local/include/liblas/spatialreference.hpp
-- Installing: /usr/local/include/liblas/detail
-- Installing: /usr/local/include/liblas/detail/private_utility.hpp
-- Installing: /usr/local/include/liblas/detail/index
-- Installing: /usr/local/include/liblas/detail/index/indexcell.hpp
-- Installing: /usr/local/include/liblas/detail/index/indexoutput.hpp
-- Installing: /usr/local/include/liblas/detail/pointrecord.hpp
-- Installing: /usr/local/include/liblas/detail/sha1.hpp
-- Installing: /usr/local/include/liblas/detail/timer.hpp
-- Installing: /usr/local/include/liblas/detail/singleton.hpp
-- Installing: /usr/local/include/liblas/detail/binary.hpp
-- Installing: /usr/local/include/liblas/detail/fwd.hpp
-- Installing: /usr/local/include/liblas/detail/opt_allocator.hpp
-- Installing: /usr/local/include/liblas/detail/file_ptr_stream.hpp
-- Installing: /usr/local/include/liblas/detail/zippoint.hpp
-- Installing: /usr/local/include/liblas/detail/endian.hpp
-- Installing: /usr/local/include/liblas/detail/writer
-- Installing: /usr/local/include/liblas/detail/writer/writer.hpp
-- Installing: /usr/local/include/liblas/detail/writer/zipwriter.hpp
-- Installing: /usr/local/include/liblas/detail/writer/header.hpp
-- Installing: /usr/local/include/liblas/detail/writer/point.hpp
-- Installing: /usr/local/include/liblas/detail/reader
-- Installing: /usr/local/include/liblas/detail/reader/zipreader.hpp
-- Installing: /usr/local/include/liblas/detail/reader/header.hpp
-- Installing: /usr/local/include/liblas/detail/reader/cachedreader.hpp
-- Installing: /usr/local/include/liblas/detail/reader/reader.hpp
-- Installing: /usr/local/include/liblas/index.hpp
-- Installing: /usr/local/include/liblas/chipper.hpp
-- Installing: /usr/local/include/liblas/utility.hpp
-- Installing: /usr/local/include/liblas/dimension.hpp
-- Installing: /usr/local/include/liblas/classification.hpp
-- Installing: /usr/local/include/liblas/version.hpp
-- Installing: /usr/local/include/liblas/header.hpp
-- Installing: /usr/local/include/liblas/color.hpp
-- Installing: /usr/local/include/liblas/guid.hpp
-- Installing: /usr/local/include/liblas/liblas.hpp
-- Installing: /usr/local/include/liblas/exception.hpp
-- Installing: /usr/local/include/liblas/point.hpp
-- Installing: /usr/local/include/liblas/reader.hpp
-- Installing: /usr/local/include/liblas/bounds.hpp
-- Installing: /usr/local/include/liblas/transform.hpp
-- Installing: /usr/local/include/liblas/iterator.hpp
-- Installing: /usr/local/include/liblas/external
-- Installing: /usr/local/include/liblas/external/property_tree
-- Installing:
/usr/local/include/liblas/external/property_tree/ptree_fwd.hpp
-- Installing: /usr/local/include/liblas/external/property_tree/detail
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/rapidxml.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_read_rapidxml.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/info_parser_write.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/info_parser_error.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/json_parser_read.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_error.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/ptree_implementation.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_writer_settings.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/file_parser_error.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/info_parser_read.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/json_parser_error.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_utils.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/ptree_utils.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/info_parser_writer_settings.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/json_parser_write.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/exception_implementation.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/info_parser_utils.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_write.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/detail/xml_parser_flags.hpp
-- Installing: /usr/local/include/liblas/external/property_tree/ptree.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/ini_parser.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/exceptions.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/info_parser.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/json_parser.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/id_translator.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/ptree_serialization.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/string_path.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/xml_parser.hpp
-- Installing:
/usr/local/include/liblas/external/property_tree/stream_translator.hpp
-- Installing: /usr/local/include/liblas/capi
-- Installing: /usr/local/include/liblas/capi/las_config.h
-- Installing: /usr/local/include/liblas/capi/las_version.h
-- Installing: /usr/local/include/liblas/capi/liblas.h
-- Installing: /usr/local/include/liblas/export.hpp
-- Installing: /usr/local/include/liblas/compatibility.hpp
-- Installing: /usr/local/include/liblas/error.hpp
-- Installing: /usr/local/include/liblas/variablerecord.hpp
-- Installing: /usr/local/include/liblas/schema.hpp
-- Installing: /usr/local/include/liblas/factory.hpp
-- Installing: /usr/local/bin/lasinfo-old
-- Removed runtime path from "/usr/local/bin/lasinfo-old"
-- Installing: /usr/local/bin/lasinfo
-- Removed runtime path from "/usr/local/bin/lasinfo"
-- Installing: /usr/local/bin/lasmerge
-- Removed runtime path from "/usr/local/bin/lasmerge"
-- Installing: /usr/local/bin/las2las
-- Removed runtime path from "/usr/local/bin/las2las"
-- Installing: /usr/local/bin/las2txt-old
-- Removed runtime path from "/usr/local/bin/las2txt-old"
-- Installing: /usr/local/bin/txt2las
-- Removed runtime path from "/usr/local/bin/txt2las"
-- Up-to-date: /usr/local/bin/las2las
-- Installing: /usr/local/bin/las2las-old
-- Removed runtime path from "/usr/local/bin/las2las-old"
-- Installing: /usr/local/bin/lasblock
-- Removed runtime path from "/usr/local/bin/lasblock"
-- Installing: /usr/local/bin/ts2las
-- Removed runtime path from "/usr/local/bin/ts2las"
-- Installing: /usr/local/bin/las2txt
-- Removed runtime path from "/usr/local/bin/las2txt"
-- Installing: /usr/local/bin/liblas-config

When for example I try using lasinfo, the following error is returned:

$ lasinfo 145E.las
lasinfo: error while loading shared libraries: liblas.so.2.2.0: cannot open
shared object file: No such file or directory

Hope this helps. Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20130619/d54d7d87/attachment.html>


More information about the Liblas-devel mailing list