Skip to content
Snippets Groups Projects
Select Git revision
  • ae5bec36cee6e66795d99907e185d8b4801a9cfd
  • master default protected
  • faster-dispatching
  • generic-cell-array-cell-types
  • surfacenets3d-improvements
  • cell-locators-tolerance
  • replace-GetVoidPointer
  • ci-uplift-fedora-42
  • sr3-reader
  • vtkCoordinates-enhancements
  • poly-gon-hedron-isconvex
  • fix-ffmepg-transparency
  • paraview/release
  • fix-python-imports
  • enforce-order-vtkPolyData
  • Voronoi3D
  • release
  • nightly-master
  • dashboard
  • v9.5.2
  • v9.5.1
  • v9.5.0
  • v9.5.0.rc3
  • v9.5.0.rc2
  • v9.5.0.rc0
  • v9.5.0.rc1
  • v9.4.2
  • v9.4.1
  • v9.4.0
  • v9.4.0.rc3
  • v9.4.0.rc2
  • v9.4.0.rc1
  • v9.3.1
  • v9.3.0
  • v9.3.0.rc2
  • v9.3.0.rc0
  • v9.3.0.rc1
  • v9.2.6
  • v9.2.5
39 results

install_openvr.sh

Blame
  • Forked from VTK / VTK
    2292 commits behind the upstream repository.
    Ben Boeckel's avatar
    Ben Boeckel authored
    For use with aarch64 because the Fedora 39 container has issues
    rebuilding due to the removal of the openturns repository.
    
    Disable OSPRay and Anari on aarch64 as they use Intel-specific bits
    currently.
    ae5bec36
    History
    install_openvr.sh 791 B
    #!/bin/sh
    
    set -e
    
    case "$( uname -m )" in
        x86_64)
            subdir="linux64"
            ;;
        aarch64)
            subdir="linuxarm64"
            ;;
        *)
            exit 0
            ;;
    esac
    readonly subdir
    
    readonly version="1.23.7"
    readonly tarball="v$version.tar.gz"
    readonly sha256sum="cbe2afbfc9ed9c6c5ed7df7929f9b1f5ecfd858b849b377005d4881b72b910b3"
    
    readonly openvr_root="$HOME/openvr"
    
    mkdir -p "$openvr_root"
    cd "$openvr_root"
    
    echo "$sha256sum  $tarball" > openvr.sha256sum
    curl -OL "https://github.com/ValveSoftware/openvr/archive/refs/tags/v$version.tar.gz"
    sha256sum --check openvr.sha256sum
    tar -xf "$tarball"
    
    install -p -m 755 "openvr-$version/bin/$subdir/libopenvr_api.so" /usr/local/lib64
    install -p -m 644 "openvr-$version/headers/"*.h /usr/local/include
    
    cd
    
    rm -rf "$openvr_root"