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

Issue compiling samples. #16

Open
TheRyeGuyWhoWillNowDie opened this issue Nov 19, 2020 · 6 comments
Open

Issue compiling samples. #16

TheRyeGuyWhoWillNowDie opened this issue Nov 19, 2020 · 6 comments

Comments

@TheRyeGuyWhoWillNowDie
Copy link

When compiling the samples, during CMAKE right after configuration is completed I get this error:

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/<my_home>/Downloads/LinusTrinus-master/samples/driver_linus_trinus

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

@thecoder08
Copy link

i too have this issue

@SarenDev
Copy link

SarenDev commented Jul 6, 2021

A solution for me ended up being:

  • Cloning the latest version of the OpenVR repo
  • Copying the linux64 folder from inside of bin
  • Pasting it into a folder called api inside the samples directory from this project

@CStafford-14
Copy link

A solution for me ended up being:

* Cloning the latest version of the OpenVR repo

* Copying the `linux64` folder from inside of `bin`

* Pasting it into a folder called `api` inside the `samples` directory from this project

I can confirm this.

@RSerejo
Copy link

RSerejo commented Apr 17, 2022

image

@danielpiven
Copy link

Everything went fine, but I receive this bug in the end:

/usr/bin/ld: could not find -lOPENVR_LIBRARIES-NOTFOUND: Missing file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [driver_linus_trinus/CMakeFiles/driver_linus_trinus.dir/build.make:161: bin/linux64/driver_linus_trinus.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: driver_linus_trinus/CMakeFiles/driver_linus_trinus.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

I've tried the solution mentioned above,

    Cloning the latest version of the OpenVR repo
    Copying the linux64 folder from inside of bin
    Pasting it into a folder called api inside the samples directory from this project

but in my Ubuntu 22.04 I cant find the folder Linux64 inside /bin/ , what lays there is just a simulink , and moving it inside /api/ folder don't solve anything. Does someone know what could be happening?

@Laegel
Copy link

Laegel commented Feb 26, 2023

@danielpiven first download/clone this repo: https://github.com/ValveSoftware/openvr
At this repo's root, you'll find a folder called "bin", and another folder called "linux64" inside it. Copy the "linux64" folder.
In LinusTrinus' "samples" folder, create another folder and call it "api". Paste the "linux64" folder into this "api" folder and that should be it.
I confirm it works in Ubuntu 22.04.

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

7 participants