KhronosGroup / OpenXR-SDK-Source

Sources for OpenXR loader, basic API layers, and example code.
https://khronos.org/openxr
Apache License 2.0
678 stars 249 forks source link

Can't build loader as static library #481

Open Supreeeme opened 5 months ago

Supreeeme commented 5 months ago

Attempting to build the loader with -DDYNAMIC_LOADER=OFF results in the following cmake error:

CMake Error: install(EXPORT "openxr_loader_export" ...) includes target "openxr_loader" which requires target "jsoncpp_interface" that is not in any export set.
CMake Error in src/loader/CMakeLists.txt:
  export called with target "openxr_loader" which requires target
  "jsoncpp_interface" that is not in any export set.
rpavlik-bot commented 3 months ago

An issue (number 2323) has been filed to correspond to this issue in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#2323 ), to facilitate working group processes.

This GitHub issue will continue to be the main site of discussion.

Supreeeme commented 3 months ago

Seems this can be worked around with by running cmake with -DBUILD_WITH_SYSTEM_JSONCPP=OFF.