dabulla / qt3d-vr-example

Qt3d example with OpenVR and OculusVR
GNU Lesser General Public License v3.0
20 stars 2 forks source link

Unable to link with OpenVR on Windows with MSVS 2017 #1

Open amesgames opened 6 years ago

amesgames commented 6 years ago

I modified vr-sdks.pri to point to my build of OpenVR and get a link error regarding libopenvr_api.so. I changed the virtualreality.pro to reflect the correct lib name of openvr_api.lib and still get the error regarding the missing .so.

I am using Import Project in Qt Creator to test this project against an installer build of Qt 5.9.

amesgames commented 6 years ago

Specifically, I get the following error at link time:

error: LNK1104: cannot open file 'C:\DevTools\openvr\lib\win64\libopenvr_api.so'

dabulla commented 6 years ago

Use the .dll/.lib on Windows. I don't think there is an .so file in the win64 folder. Modifying the pri is correct.