Open j2l opened 7 years ago
hello, I can't make it compile neither on linux (mint18-ubuntu16.04) SteamVR is working, OpenVR compiled and installed, I configured with cmake to only build the openvr backend and indicated the path for sources but... :
[ 25%] Building CXX object CMakeFiles/BridgeLib.dir/source/HMD_Bridge_API.cpp.o
[ 50%] Building CXX object CMakeFiles/BridgeLib.dir/source/OpenVR.cpp.o
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:18:1: warning: ‘typedef’ was ignored in this declaration
};
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp: In member function ‘bool OpenVRImpl::initializeLibrary()’:
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:127:113: error: ‘sprintf_s’ was not declared in this scope
sprintf_s(buf, sizeof(buf), "Unable to init VR runtime: %s", vr::VR_GetVRInitErrorAsEnglishDescription(eError));
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp: In member function ‘void OpenVRImpl::UpdateHMDMatrixPose()’:
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:207:10: error: ‘TrackedDeviceClass_Other’ is not a member of ‘vr’
case vr::TrackedDeviceClass_Other: m_rDevClassChar[nDevice] = 'O'; break;
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp: In member function ‘virtual bool OpenVRImpl::frameReady()’:
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:442:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vr::Texture_t texture = { (void*)this->m_color_texture[eye], vr::API_OpenGL, vr::ColorSpace_Auto };
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:442:64: error: ‘API_OpenGL’ is not a member of ‘vr’
vr::Texture_t texture = { (void*)this->m_color_texture[eye], vr::API_OpenGL, vr::ColorSpace_Auto };
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp: In member function ‘Matrix4 OpenVRImpl::GetHMDMatrixProjectionEye(vr::Hmd_Eye)’:
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:514:72: error: ‘API_OpenGL’ is not a member of ‘vr’
return this->GetHMDMatrixProjectionEye(nEye, m_fNearClip, m_fFarClip, vr::API_OpenGL);
^
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp: In member function ‘Matrix4 OpenVRImpl::GetHMDMatrixProjectionEye(vr::Hmd_Eye, float, float, bool)’:
/media/user/c33fcc09-6632-4e4f-b5ba-0bead6f9102a/vive/virtual_reality_viewport-df/hmd_sdk_bridge/source/OpenVR.cpp:522:83: error: ‘EGraphicsAPIConvention’ is not a member of ‘vr’
vr::HmdMatrix44_t mat = m_pHMDy->GetProjectionMatrix(nEye, fNearClip, fFarClip, (vr::EGraphicsAPIConvention)isOpenGL);
^
CMakeFiles/BridgeLib.dir/build.make:86: recipe for target 'CMakeFiles/BridgeLib.dir/source/OpenVR.cpp.o' failed
make[2]: *** [CMakeFiles/BridgeLib.dir/source/OpenVR.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/BridgeLib.dir/all' failed
make[1]: *** [CMakeFiles/BridgeLib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Hi,
Thank you for keeping up with this project. This is great! Could you please release the last Vive version? I can't build with CMake, not sure if related to CmakeLists.txt. Thanks!