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'