MyrikLD / LinusTrinus

TrinusVR streaming server for Linux
128 stars 16 forks source link

Issue compiling samples. #16

Open TheRyeGuyWhoWillNowDie opened 3 years ago

TheRyeGuyWhoWillNowDie commented 3 years ago

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

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

thecoder08 commented 3 years ago

i too have this issue

SarenDev commented 3 years ago

A solution for me ended up being:

CStafford-14 commented 2 years ago

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 commented 2 years ago

image

danielpiven commented 1 year ago

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 commented 1 year ago

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