-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hi all,
Openvr failed to build with "error C2065 , error C2051"with MSVC on Windows. Could you please help look at this issue?
Environment:
Windows: windows server 2019
VS: 2019
Repro steps:
1.open VS2019 x64 tools command
2.git clone https://github.com/ValveSoftware/openvr F:\gitP\ValveSoftware\openvr\build_amd64
3.rename F:\gitP\ValveSoftware\openvr\src\vrcommon vrcore 2>&1
4.xcopy "F:\gitP\ami-iit\openvr\src\vrcommon\vrassert.h" "F:\gitP\ValveSoftware\openvr\src\vrcore" /k/r/e/i/s/c/h/f/y
5.cd F:\gitP\ValveSoftware\openvr\build_amd64
6.cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release .. 2>&1
7.msbuild /m /p:Platform=x64 /p:Configuration=Release OpenVRSDK.sln /t:Rebuild 2>&1
Error info:
F:\gitP\ValveSoftware\openvr\src\vrcore\hmderrors_public.cpp(183,3): error C2065: 'VRInitError_Init_CreateDriverDirectDeviceFailed': undeclared identifier [F:\gitP\ValveSoftware\openvr\build_amd64\src\openvr_api64.vcxproj]
F:\gitP\ValveSoftware\openvr\src\vrcore\hmderrors_public.cpp(183,3): error C2051: case expression not constant [F:\gitP\ValveSoftware\openvr\build_amd64\src\openvr_api64.vcxproj]
log
build.log