Package Details: monado 24.0.0-2

Git Clone URL: https://aur.archlinux.org/monado.git (read-only, click to copy)
Package Base: monado
Description: An open source OpenXR runtime
Upstream URL: https://monado.dev/
Licenses: BSL-1.0
Provides: openxr-runtime
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 4
Popularity: 0.003630
First Submitted: 2021-02-16 02:03 (UTC)
Last Updated: 2025-01-14 19:36 (UTC)

Latest Comments

1 2 3 Next › Last »

haagch commented on 2025-03-06 01:49 (UTC)

Yea I guess it's a libsurvive issue. I made a github issue here: https://github.com/collabora/libsurvive/issues/325

For now I suggest doing this in the libsurvive PKGBUILD:

  mv "${pkgdir}/usr/include/cnmatrix" "${pkgdir}/usr/include/libsurvive/redist"
  mv "${pkgdir}/usr/include/cnkalman" "${pkgdir}/usr/include/libsurvive/redist"

dbermond commented on 2025-03-05 16:59 (UTC)

@haagch cnmatrix headers are not required at libsurvive build time or run time, but only at some libsurvive client applications build time. Being such, I do not think that we need to add a run time dependency to cnmatrix in libsurvive just for a header that is needed at build time of libsurvive client applications. Otherwise, cnmatrix would be also needed at libsurvive runtime, just only for a header, and this would be an overhead. This header may not even be needed by all client applicatons build time, being an optdepend at maximum. I think it's much more flexible, easier and lighter for the end user to use cnmatrix as a makedepend of libsurvive client applications, like is made here (it's a makedepend of monado, where it's being indirectly included, instead of a run time depend of libsurvive).

haagch commented on 2025-03-05 16:26 (UTC)

Are you sure cnmatrix should be a dependency of monado here? I know there was an issue in libsurvive's build system in its last release tag that required some extra work with these, but it's really not monado that needs it. If anything, it should be a dependency of the libsurvive package.

haagch commented on 2025-03-05 16:20 (UTC)

The onnxruntime error is because onnxruntime is broken. To resolve these build errors you would install the onnx package, but even then onnxruntime would not be able to load monado's hand tracking models: https://gitlab.archlinux.org/archlinux/packaging/packages/onnxruntime/-/issues/3

If you want an actual working onnxruntime, you need to downgrade to 1.19.2 like the issue says, or build one yourself.

dbermond commented on 2025-03-05 00:31 (UTC)

@dreieck I have just checked, and the package is building perfectly fine for me. I cannot reproduce your issue, and I have no idea what may be causing this for you. I have no 'onnxruntime-opt' installed during the build. Try to uninstall it, or build the package in a clean chroot if you cannot.

dreieck commented on 2025-03-04 20:36 (UTC)

build() fails for me while linking:

[...]
[ 86%] Linking CXX executable monado-cli
/usr/bin/ld: warning: libonnx.so, needed by /usr/lib/libonnxruntime.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libonnx_proto.so, needed by /usr/lib/libonnxruntime.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Exp_Onnx_ver1>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::ArgMax_Onnx_ver13>()'
[...]
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::shape_inference::InferShapeForFunctionNode(onnx::FunctionProto const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > > const&, onnx::ISchemaRegistry const*, onnx::InferenceContext&, onnx::ShapeInferenceOptions const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, onnx::FunctionProto const*, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, onnx::FunctionProto const*> > > const&, onnx::SymbolTable*, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, onnx::TensorShapeProto, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, onnx::TensorShapeProto> > >*)'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::If_Onnx_ver13>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::ReduceMax_Onnx_ver1>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::LayerNormalization_Onnx_ver17>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::FunctionProto::~FunctionProto()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Asin_Onnx_ver22>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::TypeProto::clear_value()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Reshape_Onnx_ver14>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Reshape_Onnx_ver21>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchemaRegistry::DomainToVersionRange::Instance()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Clip_Onnx_ver6>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::MeanVarianceNormalization_Onnx_ver13>()'
/usr/bin/ld: /usr/lib/libonnxruntime.so: undefined reference to `onnx::OpSchema onnx::GetOpSchema<onnx::Pow_Onnx_ver13>()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/xrt/targets/cli/CMakeFiles/cli.dir/build.make:289: src/xrt/targets/cli/monado-cli] Error 1
make[1]: *** [CMakeFiles/Makefile2:4824: src/xrt/targets/cli/CMakeFiles/cli.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().

File /usr/lib/libonnxruntime.so is provided by package extra/onnxruntime-opt, version 1.20.2-1.

Regards and thanks for maintaining!

dbermond commented on 2025-02-02 18:48 (UTC)

@MrDev023 I cannot reproduce your issue. I have just checked, and the package is building fine. AUR helpers are not supported, use makepkg.

MrDev023 commented on 2025-02-02 17:20 (UTC)

I can't compile the packages

/home/noctis/.cache/paru/clone/monado/src/monado-v24.0.0/src/xrt/drivers/qwerty/qwerty_sdl.c:30:21: erreur: déclaration implicite de la fonction « strcmp » [-Wimplicit-function-declaration] 30 | if (strcmp(tracker_name, QWERTY_HMD_TRACKER_STR) == 0 || | ^~ /home/noctis/.cache/paru/clone/monado/src/monado-v24.0.0/src/xrt/drivers/qwerty/qwerty_sdl.c:15:1: note: incluez « <string.h> » ou fournissez une déclaration de « strcmp »

dbermond commented on 2025-01-14 19:37 (UTC)

@Dewedin implemented.

Dewedin commented on 2025-01-14 08:11 (UTC)

Please include the cmake option -DXRT_HAVE_SYSTEM_CJSON:BOOL='OFF' Without this, games running from Steam with OpenComposite are unable to load Monado. I have verified that building with this option resolves the issue for this package (and I did already have the cjson package installed to the system too so that on its own did not resolve it, probably a quirk with Steam's pressure-vessel game containerisation). The solution is taken from this tutorial which states 'If there is an error related to libcjson.so.1 you will need to build Monado with the cmake option -DXRT_HAVE_SYSTEM_CJSON=off.'