openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Openvr failed to setup with CMake Error on MSVC

Open ChanyeolWang opened this issue 3 years ago • 1 comments

Hi all, Openvr failed to setup with CMake Error on MSVC. Could you help look?

Environment: Windows: windows server 2019 VS: 2019

Repro steps:

  1. git clone https://github.com/ValveSoftware/openvr F:\gitP\ValveSoftware\openvr
  2. rename F:\gitP\ValveSoftware\openvr\src\vrcommon vrcore
  3. 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
  4. cd F:\gitP\ValveSoftware\openvr\build_amd64
  5. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release ..

Expected: setup successfully.

Error message: CMake Error at src/CMakeLists.txt:94 (add_library): Cannot find source file:

vrcommon/dirtools_public.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at src/CMakeLists.txt:94 (add_library): No SOURCES given to target: openvr_api64

CMake Generate step failed. Build files cannot be regenerated correctly.

ChanyeolWang avatar Aug 24 '22 06:08 ChanyeolWang

log: configure.log

ChanyeolWang avatar Aug 24 '22 08:08 ChanyeolWang