KhronosGroup / OpenXR-SDK-Source

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

Can't build loader as static library #481

Open Supreeeme opened 3 months ago

Supreeeme commented 3 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 1 month 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 1 month ago

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