Installation on MacOS does not install libuv (OpenVDS 3.2.1)

Thank you so much for updating the installation process! The actual compile process worked for me without any problems. 👍

Description

I install OpenVDS in a non-standard installation prefix (I will call it INSTALLATION_DIR). After the compilation and installation step I get the following error message when using tools like VDSInfo or SEGYImport:

$ VDSInfo --help                                     
dyld[19054]: Library not loaded: @rpath/libuv.1.dylib
  Referenced from: <B3C82796-5CB5-3C06-97AE-C111D8D19A9C> /Users/AEJ/software/openvds-3.2.1-install-python/lib/libopenvds.3.2.1.dylib
  Reason: tried: '/Users/AEJ/software/openvds-3.2.1-install-python/lib/libuv.1.dylib' (no such file), '$ORIGIN/libuv.1.dylib' (no such file), '$ORIGIN/libuv.
1.dylib' (no such file), '$ORIGIN/../lib64/libuv.1.dylib' (no such file), '$ORIGIN/../lib64/libuv.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libuv.1.dylib' (no such file), '$ORIGIN/libuv.1.dylib' (no such file), '$ORIGIN/libuv.1.dylib' (no such file), '$ORIGIN/../lib64/libuv.1.dylib' (no
 such file), '$ORIGIN/../lib64/libuv.1.dylib' (no such file), '/usr/local/lib/libuv.1.dylib' (no such file), '/usr/lib/libuv.1.dylib' (no such file, not in dyld cache)
Abort trap: 6

Manual fix

I could fix the problem by:

  1. Copy libuv.1.0.0.dylib from ${BUILD_DIR}/libuv_1.44.2_install/Release/lib/libuv.1.0.0.dylib to ${INSTALLATION_DIR}/lib.
  2. Create a symlink within the ``${INSTALLATION_DIR}/lib/directory such thatlibuv.1.dylib -> libuv.1.0.0.dylib`.

Now the error is gone

$ VDSInfo --version                                                                                                                                             
VDSInfo - OpenVDS 3.2.1 - Revision: 6922d9151901e3d727b31c776559dd033add30fd  

Compilation command

cmake -S . \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=ON \
    -DBUILD_JAVA=OFF \
    -DBUILD_PYTHON=ON \
    -DBUILD_EXAMPLES=ON \
    -DBUILD_TESTS=OFF \
    -DBUILD_DOCS=OFF \
    -DDISABLE_AWS_IOMANAGER=ON \
    -DDISABLE_AZURESDKFORCPP_IOMANAGER=ON \
    -DDISABLE_GCP_IOMANAGER=ON \
    -DDISABLE_DMS_IOMANAGER=ON \
    -DDISABLE_STRICT_WARNINGS=ON \
    -DCMAKE_FIND_FRAMEWORK=LAST \
    -DAUTO_ADJUST_UUID=OFF \
    -DBUILD_CURL=OFF \
    -DCMAKE_MACOSX_RPATH=ON \
    -DCMAKE_INSTALL_PREFIX="${INSTALLATION_DIR}"

System

  • Arm64 MacOS 13.2.1

  • OpenVDS 3.2.1

  • clang 14.0.0

    $ clang --version
    Apple clang version 14.0.0 (clang-1400.0.29.202)
    Target: arm64-apple-darwin22.3.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  • cmake 3.26.0 (via Homebrew)