0

I followed the documentation but I don’t succeed to bind my HTC Vive Cosmos Controller with my application. The compilation return an error with the code below :

CHECK_XRCMD(xrSuggestInteractionProfileBindings(m_instance, &suggestedBindings));

In fact, it’s not a compiler error but an error window which is displaying.

enter image description here

I’m using the SDK sources from github and more precisely, the hello_xr sample. With breakpoints, I can see with CHECK_XRCMD a XR_ERROR_PATH_UNSUPPORTED. However, I wrote the same path that it is written in the doc : /interaction_profiles/htc/vive_cosmos_controller

That’s why I don’t understand…

Can u help me, please ?

Thanks for answers !

1 Answers1

-1

You must enable the extension XR_HTC_vive_cosmos_controller_interaction when you create your XrInstance. This will make the /interaction_profiles/htc/vive_cosmos_controller profile available for use.

mbucchia
  • 24
  • 3
  • Thanks, @mbucchia but I don't know how to enable it. I read the OpenXr specs that says the same thing but it doesn't say how to do. Do you know how I can do this ? – Lilian Sananikone Mar 01 '22 at 07:44
  • When you invoke xrCreateInstance(), you pass an XrInstanceCreateInfo struct. The list of extensions is in enabledExtensionNames. – mbucchia Mar 02 '22 at 08:18
  • You said you are using hello_xr, see here: https://github.com/KhronosGroup/OpenXR-SDK-Source/blob/master/src/tests/hello_xr/openxr_program.cpp#L229 – mbucchia Mar 02 '22 at 08:19