[SOLVED] Failed to build blender 2.83 (OpenXR)

Please help me to build blender 2.83:

Building Blender fails because of OpenXR errors (but OpenXR built successfully: "Done compiling XR-OpenXR-SDK-1.0.6! Running ldconfig for xr-openxr-sdk…).

To avoid the embree errors I built the deps with install_deps.sh --with-all --with-oidn --skip-osl --skip-embree --with-usd (adding --build-xr-openxr to install_deps parameters does not help) but building blender fails:

/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::operator[](char const*) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::isNull() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::operator[](char const*) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::isString() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::operator[](char const*) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::IsValidJson(Json::Value const&, JsonVersion&): error: undefined reference to ‘Json::Value::asStringabi:cxx11 const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&) [clone .cold]: error: undefined reference to ‘Json::Value::~Value()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&) [clone .cold]: error: undefined reference to ‘Json::Value::~Value()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&) [clone .cold]: error: undefined reference to ‘Json::Value::~Value()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::operator[](char const*) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::Value(Json::Value const&)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::Value(Json::Value const&)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::Value(Json::Value const&)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::isString() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::isUInt() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::~Value()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::isArray() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::asStringabi:cxx11 const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::asUInt() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::begin()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::end()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::ValueIteratorBase::increment()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::ValueIteratorBase::isEqual(Json::ValueIteratorBase const&) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::ValueIteratorBase::deref() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::isString() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ParseExtension(Json::Value const&, std::vector<ExtensionListing, std::allocator >&): error: undefined reference to ‘Json::Value::asStringabi:cxx11 const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isNull() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isNull() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isNull() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isArray() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::begin() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::end() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::deref() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::increment()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::isEqual(Json::ValueIteratorBase const&) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::empty() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::begin() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::key() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::asStringabi:cxx11 const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::deref() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::increment()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::end() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::isEqual(Json::ValueIteratorBase const&) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::deref() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isString() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::isArray() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::begin() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::Value::end() const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::increment()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ManifestFile::ParseCommon(Json::Value const&): error: undefined reference to ‘Json::ValueIteratorBase::isEqual(Json::ValueIteratorBase const&) const’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&) [clone .cold]: error: undefined reference to ‘Json::CharReaderBuilder::~CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::CharReaderBuilder::CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::Value::Value(Json::ValueType)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::CharReaderBuilder::~CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to 'Json::Value::operator[](char const
)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function RuntimeManifestFile::CreateIfValid(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<RuntimeManifestFile, std::default_delete >, std::allocator<std::unique_ptr<RuntimeManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::CharReaderBuilder::~CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&) [clone .cold]: error: undefined reference to ‘Json::CharReaderBuilder::~CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::CharReaderBuilder::CharReaderBuilder()’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::Value::Value(Json::ValueType)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::parseFromStream(Json::CharReader::Factory const&, std::istream&, Json::Value*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to 'Json::Value::operator[](char const
)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::Value::Value(Json::Value const&)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::Value::operator[](char const*)’
/home/mick/blender-git/deps/xr-openxr-sdk/lib/libopenxr_loader.a(manifest_file.cpp.o):manifest_file.cpp:function ApiLayerManifestFile::CreateIfValid(ManifestFileType, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::unique_ptr<ApiLayerManifestFile, std::default_delete >, std::allocator<std::unique_ptr<ApiLayerManifestFile, std::default_delete > > >&): error: undefined reference to ‘Json::Value::operator[](char const*)’
collect2: error: ld returned 1 exit status
make[3]: *** [source/creator/CMakeFiles/blender.dir/build.make:355: bin/blender] Error 1
make[2]: *** [CMakeFiles/Makefile2:6798: source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [Makefile:163: all] Error 2
make: *** [GNUmakefile:315: all] Error 2

Trying to skip OpenXR using --skip-xr-openxr does not work, too:

getopt: unrecognized option '--skip-xr-openxr'

Update the libs, and if you are on Linux, follow the wiki and download the libs from the SVN instead of using make deps or install deps :slight_smile:

But OpenXR is fetched from git and compiled every time I execute install_deps, so it should be the very latest? Is install_deps broken?
I don’t even need OpenXR and although --skip-xr-openxr is from install_deps, it is not recognized.

did you run make update before running make?
Also, svn checkout is convenient and less buggy.
https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu

I think I never used make update, what does it do?

see the link ^. or run make help.
It updates the submodules and source code.

So it is equivalent to:
git pull --rebase
git submodule foreach git pull --rebase origin master
I really don’t see where this is written in the wiki, so thank you for pointing it out.
That’s what I always do, so I guess I don’t need make update.

Fixed the --skip-xr-openxr flag, https://developer.blender.org/rBc589fdc8dba15.
I’m not entirely sure what the other issue is, besides that it’s related to jsoncpp.

Could you give it a go with the following patch?

diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh
index 305396ed27f..e06dd347b95 100755
--- a/build_files/build_environment/install_deps.sh
+++ b/build_files/build_environment/install_deps.sh
@@ -3185,6 +3185,7 @@ compile_XR_OpenXR_SDK() {
     cmake_d="$cmake_d -D BUILD_WITH_WAYLAND_HEADERS=OFF"
     cmake_d="$cmake_d -D BUILD_WITH_XCB_HEADERS=OFF"
     cmake_d="$cmake_d -D BUILD_WITH_XLIB_HEADERS=ON"
+    cmake_d="$cmake_d -D BUILD_WITH_SYSTEM_JSONCPP=OFF"
 
     cmake $cmake_d "-DCMAKE_CXX_FLAGS=-DDISABLE_STD_FILESYSTEM=1" ..
1 Like

Thanks for the fix!

So I used install_deps.sh --with-all --with-oidn --skip-osl --with-embree --build-embree --build-usd --build-xr-openxr
it built OpenXR again although it has already been built (–with-embree --build-embree does not unnecessaryly recompile embree, instead I get the message
Forced Embree building, as requested…
Own Embree-3.8.0 is up to date, nothing to do!
If you want to force rebuild of this lib, use the --force-embree option.)
Would be nice if it would not compile if unnecessary.

With your patch, blender finally compiles successfully again - thank you!