LinusTrinus icon indicating copy to clipboard operation
LinusTrinus copied to clipboard

Issue compiling samples.

Open TheRyeGuyWhoWillNowDie opened this issue 5 years ago • 6 comments
trafficstars

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.

TheRyeGuyWhoWillNowDie avatar Nov 19 '20 05:11 TheRyeGuyWhoWillNowDie

i too have this issue

thecoder08 avatar May 19 '21 15:05 thecoder08

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

SarenDev avatar Jul 06 '21 17:07 SarenDev

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.

CStafford-14 avatar Oct 01 '21 10:10 CStafford-14

image

RSerejo avatar Apr 17 '22 22:04 RSerejo

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?

danielpiven avatar Nov 22 '22 21:11 danielpiven

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

Laegel avatar Feb 26 '23 11:02 Laegel