[pdal] Installing PDAL on OSX with rivlib

Pete Gadomski pete.gadomski at gmail.com
Fri Oct 22 05:53:21 PDT 2021


The rivlib library you're using is built for a linux machine, not the MacOS
you're building on. I'd try working inside a linux docker container --
that's how I've done work w/ rivlib in the past on MacOS.

Cheers,
Pete

On Wed, Oct 20, 2021 at 6:35 AM Phil Wilkes <p.wilkes at ucl.ac.uk> wrote:

> Hi there
>
> I would like to install PDAL on a MacBook Pro (version 10.14.3) with the
> RIEGL rivlib libraries. I have successfully done this on for linux OS in
> the past.
>
> When compiling I get this error
>
> FAILED: lib/libpdal_plugin_reader_rxp.13.0.0.dylib
> : &&
> /Users/phil/opt/miniconda3/envs/pdal-install/bin/x86_64-apple-darwin13.4.0-clang++
> -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE
> -fstack-protector-strong -O2 -pipe -stdlib=libc++
> -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem
> /Users/phil/opt/miniconda3/envs/pdal-install/include -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
> -dynamiclib -Wl,-headerpad_max_install_names -Wl,-pie
> -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs
> -Wl,-rpath,/Users/phil/opt/miniconda3/envs/pdal-install/lib
> -L/Users/phil/opt/miniconda3/envs/pdal-install/lib -compatibility_version
> 13.0.0 -current_version 13.0.0 -o
> lib/libpdal_plugin_reader_rxp.13.0.0.dylib -install_name
> @rpath/libpdal_plugin_reader_rxp.13.dylib
> plugins/rxp/CMakeFiles/pdal_plugin_reader_rxp.dir/io/RxpPointcloud.cpp.o
> plugins/rxp/CMakeFiles/pdal_plugin_reader_rxp.dir/io/RxpReader.cpp.o
> -Wl,-rpath,/Users/phil/opt/PDAL-2.3.0-src/build/lib
> lib/libpdalcpp.13.0.0.dylib lib/libpdal_util.13.0.0.dylib
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libscanlib-mt.a
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_system-mt.a
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_thread-mt.a
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_date_time-mt.a
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_regex-mt.a
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_filesystem-mt.a
> -lpthread -L/Users/phil/opt/PDAL-2.3.0-src/build/lib && :
> ld: warning: -pie being ignored. It is only used when linking a main
> executable
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_system-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_date_time-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_regex-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_thread-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libscanlib-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> ld: warning: ignoring file
> /Users/phil/opt/rivlib-2_5_10-x86_64-linux-gcc9/lib/libriboost_filesystem-mt.a,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
> 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
> Undefined symbols for architecture x86_64:
>
> Then many lines similar to
>
> "scanlib::pointcloud::on_dyntrig(scanlib::dyntrig<unsigned int const*>
> const&)", referenced from:
> vtable for pdal::RxpPointcloud in RxpPointcloud.cpp.o
>
> Then finally
>
> ld: symbol(s) not found for architecture x86_64
> clang-11: error: linker command failed with exit code 1 (use -v to see
> invocation)
> [378/501] Building CXX object test/unit/CMakeFiles/pdal_eigen_test.dir//
> /pdal/private/MathUtils.cpp.o
> ninja: build stopped: subcommand failed.
>
> I am using the *RiVLib 2.5.10 x86 64bit Linux gcc9 *and am installing in
> a conda environment.
>
>
> Any help gratefully received.
>
>
> Phil
>
>
>
> Dr. Phil Wilkes
>
> UCL Geography, Gower Street, London WC1E 6BT
>
> & NERC National Centre for Earth Observation
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20211022/478f96fe/attachment.html>


More information about the pdal mailing list