Package Details: libsurvive-git 2216.5319743-1

Git Clone URL: https://aur.archlinux.org/libsurvive-git.git (read-only, click to copy)
Package Base: libsurvive-git
Description: Open-Source tool for working with lighthouse-based tracking data, including support for the HTC Vive, Vive Pro and Valve Index.
Upstream URL: https://github.com/cntools/libsurvive
Licenses: MIT
Conflicts: libsurvive
Provides: libsurvive
Submitter: haagch
Maintainer: haagch
Last Packager: haagch
Votes: 0
Popularity: 0.000000
First Submitted: 2020-05-08 00:06 (UTC)
Last Updated: 2022-10-20 18:16 (UTC)

Required by (4)

Sources (3)

Latest Comments

dreieck commented on 2024-02-09 09:53 (UTC)

Fails to build for me with ModelPlot.cc:66:18: error: ‘class sciplot::Plot’ has no member named ‘show’:

In file included from /tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:1:
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/../include/cnkalman/ModelPlot.h:16:23: error: cannot declare field ‘cnkalman::ModelPlot::plot’ to be of abstract type ‘sciplot::Plot’
   16 |         sciplot::Plot plot;
      |                       ^~~~
In file included from /usr/include/sciplot/Plot2D.hpp:37,
                 from /usr/include/sciplot/Figure.hpp:34,
                 from /usr/include/sciplot/Canvas.hpp:33,
                 from /usr/include/sciplot/sciplot.hpp:38,
                 from /tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/../include/cnkalman/ModelPlot.h:6:
/usr/include/sciplot/Plot.hpp:56:7: note:   because the following virtual functions are pure within ‘sciplot::Plot’:
   56 | class Plot
      |       ^~~~
/usr/include/sciplot/Plot.hpp:204:18: note:     ‘virtual std::string sciplot::Plot::repr() const’
  204 |     virtual auto repr() const -> std::string = 0;
      |                  ^~~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/../include/cnkalman/ModelPlot.h:17:23: error: cannot declare field ‘cnkalman::ModelPlot::map’ to be of abstract type ‘sciplot::Plot’
   17 |         sciplot::Plot map;
      |                       ^~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc: In destructor ‘cnkalman::ModelPlot::~ModelPlot()’:
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:66:18: error: ‘class sciplot::Plot’ has no member named ‘show’
   66 |             plot.show();
      |                  ^~~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:67:17: error: ‘class sciplot::Plot’ has no member named ‘show’
   67 |             map.show();
      |                 ^~~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:69:14: error: ‘class sciplot::Plot’ has no member named ‘save’
   69 |         plot.save(name + "-plot.svg");
      |              ^~~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:70:13: error: ‘class sciplot::Plot’ has no member named ‘save’
   70 |         map.save(name + ".svg");
      |             ^~~~
/tmp/makepkg/build/libsurvive-git/src/libsurvive/libs/cnkalman/src/ModelPlot.cc:71:13: error: ‘class sciplot::Plot’ has no member named ‘save’
   71 |         map.save(name + ".png");
      |             ^~~~
[69/95] Building CXX object libs/cnkalman/libs/cnmatrix/src/CMakeFiles/cnmatrix.dir/eigen/svd.cpp.o
ninja: build stopped: subcommand failed.

Regards!

vsTerminus commented on 2024-01-22 00:58 (UTC) (edited on 2024-01-22 00:59 (UTC) by vsTerminus)

So in December there was a commit which broke hand tracking on Linux:

https://github.com/cntools/libsurvive/issues/294#issuecomment-1815183220
https://github.com/cntools/libsurvive/commit/464dd9734a8de20df818fd83e7c1b016b068bb52

It's easy enough to temporarily correct this by adding the following to PKGBUILD to the end of the "prepare()" function:

git revert --no-commit 464dd9734a8de20df818fd83e7c1b016b068bb52

In case anyone is having trouble getting the controller tracking to work on current builds.

haagch commented on 2021-04-06 09:01 (UTC)

@s-ol The xr-hardware (xr-hardware-git) dependency should take care of the udev rules. If those are missing some USB device we need to add them to xr-hardware.

I know we have missed something in the past because we had the rules shipped by the steam package installed /usr/lib/udev/rules.d/70-steam-vr.rules that has the rules for all the Vive/Index devices.

s-ol commented on 2021-04-06 08:15 (UTC)

Unlike libsurvive proper, this doesn't currently install the udev rules as per the "Getting Started" guide. I think that would be a good addition:

install -D -m644 "${pkgname}-${pkgver}/useful_files/81-vive.rules" -t "${pkgdir}/usr/lib/udev/rules.d"

dbermond commented on 2021-02-16 03:25 (UTC)

@haagch Thank you. If you build the package in a clean chroot with devtools (as Arch Linux packagers do with repository packages), you will see the namcap message indicating libusb as a missing dependency.

haagch commented on 2021-02-16 03:14 (UTC)

Interesting, namcap isn't showing libusb here. Still added it because I guess it really is a dependency.

dbermond commented on 2021-02-16 00:30 (UTC)

@haagch 'libusb' is missing on depends. Without libusb installed, the package will not even compile, showing this error: ../src/driver_vive.h:14:10: fatal error: libusb-1.0/libusb.h: No such file or directory../src/driver_vive.h:14:10: fatal error: libusb-1.0/libusb.h: No such file or directory

And namcap output shows that libusb is needed at runtime: libsurvive-git E: Dependency libusb detected and not included (libraries ['usr/lib/libusb-1.0.so.0'] needed in files ['usr/lib/libsurvive/plugins/driver_vive.so'])

Please add libusb to depends.

Note: ignore my previous comment, it was for your other package and was wrongly place here. I deleted it.