Enabling the XRBase plugin from the plugins menu should fix the warning.
To access the XR system from C++ code, it is probably enough with those dependencies. You only need the OpenXR module there if you need any of the few features that aren’t abstracted by the HeadMountedDisplay module.