MyrikLD / LinusTrinus

TrinusVR streaming server for Linux
128 stars 16 forks source link

Unable to compile on Linux Mint 19.3 #18

Open Atrixium opened 3 years ago

Atrixium commented 3 years ago

I was able to get the Python app to recognize my Android, which was great, but I couldn't figure out how to successfully compile the driver so that SteamVR could detect it.

The first problem I found was that my SteamVR path was different, it was actually: /home/user/.local/share/Steam/steamapps/common/OpenVR

Correcting that in the makefile got me a little closer but I got stuck on:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENVR_LIBRARIES linked by target "driver_linus_trinus" in directory /home/user/Gaming/LinusTrinus-master/samples/driver_linus_trinus

I assumed that this error meant it was looking for the OpenVR library file and I tried adding that to the driver_linus_trinus folder, but that didn't work either. Unfortunately this is where I'm stuck, I was really looking forward to trying this out!

rolimlucas commented 3 years ago

I am not an expert but managed to build it by using an application named cmake-qt-gui wich I was lucky to found in synaptic package manager. From this gui app you can set the exact path to openvr libraries... Hope it works for you! I'm still struggling in building openvr correctly ☹

Flynn-Mandrake commented 3 years ago

Same problem for me on Manjaro

Corallus-Caninus commented 3 years ago

I went into the CMakeCache.txt that was generated and changed OPENVR_LIBRARIES: to the path of my libopenvr_api.so that I downloaded.

Flynn-Mandrake commented 3 years ago

That worked, thanks! I now get another error, but it worked!

Corallus-Caninus commented 3 years ago

Make sure you change the server port number in the python code to match the driver, for me I changed 5000 to 4646. The driver needs to go in the ~/.steam/steam/steamapps/common/SteamVR/drivers/ folder. You will know it works when in SteamVR dashboard you can toggle linus_trinus as an add-on in settings.

I would also recommend changing windowHeight and windowWidth to match renderHeight and renderWidth in linus_trinus/resources/settings/default.vrsettings otherwise you may have gaze selection issues in some apps. Generally configuring this is probably a good idea.

I am going to work on a PR for this and possibly an installation script for the driver. Please open a separate issue.

Flynn-Mandrake commented 3 years ago

It works for me now, thanks. I didn't need to change the port number on my end, and the driver was automatically copied into the relevant directory by the make.sh installation script. Most of my problems stemmed from the outdated build instructions in the samples folder; for me, it required the current version of openvr to compile without issues, not version 1.5.17 as suggested in the readme. Furthermore, all relevant openvr files need to go into driver_linus_trinus, not the nonexistent driver_sample folder. This was likely also the issue behind this issue; directly pasting the openvr header and libraries into the correct folders makes LinusTrinus compile for me correctly without need for further tweaks. As for windowHeight and windowWidth, I haven't run into any issues with that yet, but thanks for the help in advance!

Corallus-Caninus commented 3 years ago

Interesting did the ports work after you pulled my commit or before? the driver implementation is listening on 4242 so I don't see how else this would have worked. I didn't set the environment variable so I had to set Steam's location in the make cache thanks if I need to reinstall I'll do that instead.

Flynn-Mandrake commented 3 years ago

Ports worked before

mwhaite commented 3 years ago

so what fixes this and can we get a version that compiles in this repo? maybe with anything remotely resembling instructions in the README files?

cprn commented 2 years ago

Same problem for me on Manjaro

Provided you've installed all dependencies, it currently works on Manjaro almost out of the box. Detailed installation instructions.