matinas / openvrsimplexamples

Simple OpenVR tracking example using the HTC Vive as part of the OpenVR tutorials on The Ghost Howls Virtual Reality blog: https://skarredghost.com/
26 stars 10 forks source link

Not working on Windows10 #1

Open piede828 opened 5 years ago

piede828 commented 5 years ago

When trying to launch on Windows 10, I get a series of these messages:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol __imp__VR_IsHmdPresent referenced in function "int __cdecl init_OpenVR(void)" (?init_OpenVR@@YAHXZ) openvrsimplexamples xxxxxx/openvrsimplexamples-master\openvrsimplexamples\main.obj 1

offchan42 commented 5 years ago

You are probably using Debug configuration which lacks the directory configuration for all the third-party files. Change configuration to Release and it should work. image

offchan42 commented 5 years ago

If you use VS2017, please also change VCInstallDir to VCToolsInstallDir. Otherwise many libraries won't be found. image

nonlin commented 4 years ago

I get cannot open file 'msvcprt.lib' even after doing the above changes.

Oh also had to inherit from project defaults.

bitkojine commented 3 years ago

If you use VS2017, please also change VCInstallDir to VCToolsInstallDir. Otherwise many libraries won't be found. image

I'm using $(VC_LibraryPath_x86) instead of the VCToolsInstallDir ones for both Debug and Release Library Directories. Also using $(WindowsSDK_LibraryPath_x86) for both.

bipul-mohanto commented 2 years ago

Thanks to @RobertasRudys , its working on my VS2019 without the msvcprt.lib error.