Package Details: opentrack 2026.1.0-6

Git Clone URL: https://aur.archlinux.org/opentrack.git (read-only, click to copy)
Package Base: opentrack
Description: Head tracking software
Upstream URL: https://github.com/opentrack/opentrack/
Keywords: headtracking opencv
Licenses: ISC
Submitter: popux
Maintainer: Moofed (gugah)
Last Packager: gugah
Votes: 16
Popularity: 0.29
First Submitted: 2015-04-25 23:46 (UTC)
Last Updated: 2026-10-23 20:15 (UTC)

Pinned Comments

gugah commented on 2026-07-28 16:44 (UTC) (edited on 2026-07-28 16:46 (UTC) by gugah)

The most recent 2026.1.0 release won't build due to the OpenCV 5 update and also required several patches which were already implemented by upstream in the master branch. Therefore, I decided to pick the current commit so the package at least works... I'll revert to the next release or pre-release once upstream decides to upload one. As usual, when opencv or onnxruntime are updated, a rebuild may be necessary:

paru -S --rebuild opentrack

or

yay -S --rebuild opentrack

Latest Comments

1 2 3 4 5 6 7 Next › Last »

gugah commented on 2026-10-23 20:15 (UTC)

@Technetium1 thanks for that catch, I found https://github.com/opentrack/opentrack/issues/2131 investigating, turns out git is needed.

I've also updated to the latest commit (still no release by upstream...) because they fixed the neuralnet tracker CPU usage and I don't want to cherry-pick the patch (https://github.com/opentrack/opentrack/pull/2223). There's also updates to the aruco paper tracker which I want to add to the AUR next as an optional dependency.

Technetium1 commented on 2026-10-19 05:41 (UTC)

Please add the missing git in makedepends so that ahrsfusion can clone.

gugah commented on 2026-08-07 19:38 (UTC)

@cprn I've just rebuilt to check this and no issues on my side. I'm using an unmodified /etc/makepkg.conf Could you check if you're using custom flags?

cprn commented on 2026-08-05 22:58 (UTC)

I just hit a linker error on GCC 16.1.1, adding options=('!lto') to PKGBUILD solved it.

gugah commented on 2026-07-28 16:44 (UTC) (edited on 2026-07-28 16:46 (UTC) by gugah)

The most recent 2026.1.0 release won't build due to the OpenCV 5 update and also required several patches which were already implemented by upstream in the master branch. Therefore, I decided to pick the current commit so the package at least works... I'll revert to the next release or pre-release once upstream decides to upload one. As usual, when opencv or onnxruntime are updated, a rebuild may be necessary:

paru -S --rebuild opentrack

or

yay -S --rebuild opentrack

gugah commented on 2026-07-24 14:51 (UTC) (edited on 2026-07-24 17:51 (UTC) by gugah)

Upstream has not yet released an opentrack version with OpenCV 5 support. There's 3 alternatives:

  • Use opentrack-git which compiles from the master branch instead of the last release (workaround needed, see comments below).
  • Downgrade opencv (this may affect other packages, most prominently spectacle) and rebuild (in my case it built but opencv crashed at runtime due to other updated packages).
  • Modify the PKGBUILD to use the master branch instead of the 2026.1.0 release. This is what I used, but I haven't updated the AUR because this package is based on releases, not git.

Here's a modified PKGBUILD to use the current master branch instead of the last release. Compiles out of the box without needing patches:

pkgname=opentrack
pkgver=2026.1.0
pkgrel=5
pkgdesc="Head tracking software"
arch=('x86_64')
url="https://github.com/opentrack/opentrack/"
license=('ISC')
depends=('qt6-base' 'qt6-5compat' 'opencv')
makedepends=('cmake' 'xplane-sdk-devel' 'wine' 'ninja' 'qt6-tools' 'qt6-declarative' 'procps-ng')
optdepends=('onnxruntime: ONNX support for neuralnet tracker'
            'libgomp: OpenMP support for neuralnet tracker (GCC)'
            'openmp: OpenMP support for neuralnet tracker (Clang)')
install=opentrack.install
source=("https://github.com/opentrack/opentrack/archive/refs/heads/master.zip" 
        "opentrack.desktop"
        "opentrack-wayland.desktop"
        "opentrack.install")
sha256sums=('b2a526bfe23bd4b8e7b6acab3ec5703393841f0bc472ccdce94db184e0a09748'
            'cf717d146a89c7373ec9b393164898db6ea32790f1ce1948c90bc1d4e2f4bb98'
            'b42816a28ecf72a66e6815810cd8565277e77a2eeb1f987e3e046b297170a279'
            '6ed28561a673981dbe3fbb9739ebae890c72486081c93b8049d5744a10b610de')

build() {
  cd opentrack-master

  # Color codes for warnings, if output is a terminal
  if [ -t 1 ]; then
    _RED='\033[0;31m'
    _NC='\033[0m' # No Color
  else
    _RED=''
    _NC=''
  fi

  # Check for onnxruntime
  if ! pkg-config --exists onnxruntime 2>/dev/null && [ ! -d "/usr/include/onnxruntime" ]; then
    echo -e "${_RED}WARNING: onnxruntime not found. Neuralnet tracker support will not be available.${_NC}"
  fi

  # Check for OpenMP libraries
  if [ ! -f "/usr/lib/libomp.so" ] && [ ! -f "/usr/lib/libgomp.so.1" ]; then
    echo -e "${_RED}WARNING: OpenMP library not found. Neuralnet tracker support will not be available.${_NC}"
  fi

  mkdir -p build
  cd build

  # Fix X-Plane SDK path
  mkdir -p xplane_sdk/CHeaders
  ln -sf /usr/include/xplane_sdk/Wrappers xplane_sdk/CHeaders/
  ln -sf /usr/include/xplane_sdk/Widgets  xplane_sdk/CHeaders/
  ln -sf /usr/include/xplane_sdk/XPLM     xplane_sdk/CHeaders/
  export ONNXRuntime_ROOT=/usr
  cmake .. \
      -GNinja \
      -DCMAKE_BUILD_TYPE=Release \
      -DSDK_XPLANE=xplane_sdk \
      -DSDK_WINE=ON \
      -DONNXRuntime_DIR=/usr/lib/cmake/onnxruntime \
      -DCMAKE_INSTALL_PREFIX=/usr

  ninja
}

package() {
  cd opentrack-master/build
  DESTDIR="$pkgdir" ninja install

  install -Dm644 $srcdir/opentrack.desktop $pkgdir/usr/share/applications/opentrack.desktop
  install -Dm644 $srcdir/opentrack-wayland.desktop $pkgdir/usr/share/applications/opentrack-wayland.desktop
}

gugah commented on 2026-07-23 19:01 (UTC) (edited on 2026-07-23 19:04 (UTC) by gugah)

@cprn: it looks like upstream added OpenCV 5 compatibility in their main branch but haven't released yet. I'll check how long since the next release (this AUR package follows the official releases even though it compiles from the repo) or see if I could use https://aur.archlinux.org/packages/opencv4 as a dependency.

edit: looking at upstream, they have a fixed branch: https://github.com/opentrack/opentrack/compare/master...fix-linux-opencv5 for compiling on linux. I'll add those patches to the release... when I find some free time.

cprn commented on 2026-07-18 09:17 (UTC) (edited on 2026-07-18 09:34 (UTC) by cprn)

Doesn't compile since OpenCV 5.0 - opentrack-git compiles and NeuralNet tracker works, but it requires a workaround.

gugah commented on 2026-06-11 15:09 (UTC) (edited on 2026-06-11 18:21 (UTC) by gugah)

@judorange thanks for your remarks. I've addressed all the issues you pointed out:

  • added libgomp and openmp to optional depends (are you building with clang instead of GCC? in such case you are right about using openmp instead of libgomp... I'm wondering if that's your case)
  • print warning messages if any of onnxruntime or openmp libs are missing (upstream makes it fail silently, true, I guess because not everyone may be interested in the neuralnet feature)
  • added qt6-5compat to dependencies
  • patched low fps issue #2151 with PR #2146 (this fix is not shipped with 2026.1.0 but it's so basic I back-ported it)

judorange commented on 2026-03-03 20:19 (UTC) (edited on 2026-03-03 22:01 (UTC) by judorange)

I had some trouble to enable neuralnet b/c of missing openmp cf https://github.com/opentrack/opentrack/blob/6e733b5b1b9703c80b4e9cf9e0451cb9dc7cbbf7/tracker-neuralnet/CMakeLists.txt#L14

Without it, it will just silently fail, and build without the feature.

Like the previous comments, I had to rebuild after installing https://archlinux.org/packages/extra/x86_64/onnxruntime-cpu/

All good now. Thx for package!

edit: for the "Camera Settings" to work, you also need qt6-5compat else it logs a /usr/bin/qv4l2: error while loading shared libraries: libQt6Core5Compat.so.6: cannot open shared object file: No such file or directory when clicking the button and just do nothing

edit2: if you are stuck with a 10 FPS capture but you know [ie checking the V4L2 bench, OBS, etc] that your webcam can work at 60FPS then you may be hitting this: https://github.com/opentrack/opentrack/issues/2151