Select Git revision
install_openvr.sh
Forked from
VTK / VTK
2292 commits behind the upstream repository.

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.
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"