Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile on Linux Mint 19.3 #18

Open
Atrixium opened this issue Jan 15, 2021 · 10 comments
Open

Unable to compile on Linux Mint 19.3 #18

Atrixium opened this issue Jan 15, 2021 · 10 comments

Comments

@Atrixium
Copy link

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
Copy link

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
Copy link

Same problem for me on Manjaro

@Corallus-Caninus
Copy link
Contributor

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
Copy link

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

@Corallus-Caninus
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

Corallus-Caninus commented May 18, 2021

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
Copy link

Ports worked before

@mwhaite
Copy link

mwhaite commented Jul 10, 2021

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
Copy link
Contributor

cprn commented Nov 15, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants