[Liblas-devel] Issues with Linking

Charles Karney charles.karney at sri.com
Wed Jun 19 19:00:06 PDT 2013


I checked.  My patches were applied after 1.7.0.  So you will need
to pull from git to get the fixes...

On 06/19/2013 09:15 PM, Charles Karney wrote:
> I posted a patch to the cmake configuration to libLAS which put
> the runtime library paths into the utilities.  It looks like the
> patch never got applied?  I'll hunt down the E-mail which included
> the patch...
>
>    --Charles
>
> On 06/19/2013 08:58 PM, Sean Baskin wrote:
>> 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.
>>
>>
>> _______________________________________________
>> 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