LinusTrinus icon indicating copy to clipboard operation
LinusTrinus copied to clipboard

Needs build instructions

Open nhobson99 opened this issue 2 years ago • 4 comments

To make my point clear, I know that I need to download openvr_driver.h from Valve's SDK repository, but I'm not sure what directory to put it in. I'm also not sure if I'm meant to run make.sh, or manually run cmake as per the README. Regardless, I can't get anything to become of running cmake, even with the openvr driver header file downloaded, so do I need more than that? Do I also need the rest of the SDK, or just the header files? And what are the prerequisites for building?

If I could get some more direction, I'd love to be able to run this and possibly even contribute, but as of right now, I have no idea where to start. This is such an inspiring project! Just please, give us a better README!

Sincerely, Some guy on the Internet

nhobson99 avatar Oct 10 '21 00:10 nhobson99

Put openvr_driver.h from openvr/headers to samples directory. Compile with make.sh works for me, but after starting SteamVR I get error 307.

flipixwork avatar Oct 15 '21 08:10 flipixwork

You can just install openvr package instead and it will be in global include directory. Detailed instructions in this fork.

cprn avatar Nov 15 '21 22:11 cprn

Install and run VR Server

In terminal install system dependencies:

yay -S ffmpeg openvr
yay -S xorg-xwd xorg-xwininfo   # for Ubuntu: `sudo apt install x11-apps`

clone this repo:

cd ~/projects                   # or wherever you keep your repos
git clone --depth 1 https://github.com/MyrikLD/LinusTrinus
cd LinusTrinus

Install Python dependencies:

python3 -m venv .venv           # optional to install locally
source .venv/bin/activate       # and not in `/usr/lib/python*/blah/...`
pip install frame-generator wand

Compile and install driver for SteamVR:

cd samples
./make.sh
cd ..

Run server:

python3 main.py                 # with virtual environment still active

lordars avatar Jan 11 '22 10:01 lordars

I suggest a few change (note some extra dependencies to be covered for newbies and avoiding yay):

# From within Steam install SteamVR:
# https://store.steampowered.com/app/250820/SteamVR/

pacman -S ffmpeg openvr xorg-xwd xorg-xwininfo python-pipenv git

git clone https://github.com/MyrikLD/LinusTrinus
cd LinusTrinus

pipenv install frame-generator wand

# Compile and install driver for SteamVR:
cd samples
pipenv run ./make.sh
cd ..

pipenv run python main.py

wernight avatar Feb 18 '22 13:02 wernight