Package Details: osvr-cpi-git r19.1d8d242-1

Git Clone URL: https://aur.archlinux.org/osvr-cpi-git.git (read-only, click to copy)
Package Base: osvr-cpi-git
Description: A simple QT based utility to help users set up their configuration parameters
Upstream URL: https://github.com/OSVR/OSVR-Config
Submitter: haagch
Maintainer: haagch
Last Packager: haagch
Votes: 0
Popularity: 0.000000
First Submitted: 2016-09-02 15:10 (UTC)
Last Updated: 2016-09-02 15:11 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

pix3l commented on 2023-02-05 11:05 (UTC)

 Except starting app and running osvr_server, I haven't tested it.

you must also build fswatch 0.12, I've made fswatch-legacy package (but don't have permissions/knowledge to upload it here):


# Maintainer: Andrew Rabert <ar@nullsum.net>
# Contributor: Flaviu Tamas <aur@flaviutamas.com>

pkgname=fswatch-legacy
_pkgname=fswatch
pkgver=1.12.0
pkgrel=1
pkgdesc="A cross-platform file change monitor with multiple backends: Apple OS X File System Events API, *BSD kqueue, Linux inotify, Microsoft Windows and a stat-based backend"
arch=("i686" "x86_64")
url="https://emcrisostomo.github.io/fswatch/"
license=('GPLv3')
source=("https://github.com/emcrisostomo/fswatch/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz")
sha256sums=('8042da283b34dc383ff6321254163e378d4f3cd5d8df87ff608f811ea33e6a83')
provides=(fswatch=$pkgver)
conflicts=('fswatch')

build() {
    cd "$_pkgname-$pkgver"
    ./configure --prefix=/usr
    make
}

check() {
    cd "$_pkgname-$pkgver"
    make -k check
}

package() {
    cd "$_pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}

pix3l commented on 2023-02-05 10:36 (UTC)

without my patch (forcing it to use system jsoncpp), it copiled, started, but osvr_server won't start, because it used newer(system) jsoncpp, after dloading plugin from this app, symbols mismatched:


Feb 04 07:18:05.163 info [OSVR]: Logging for /usr/bin/osvr_server
Feb 04 07:18:05.164 info [OSVR Server]: Using default config file - pass a filename on the command line to use a different one.
Feb 04 07:18:05.164 info [OSVR Server]: Constructing server as configured...
Feb 04 07:18:05.164 info [OSVR Server]: Loading auto-loadable plugins...
Feb 04 07:18:05.459 warning [PluginHost]: Failed to load plugin com_osvr_user_settings: Failed to load the module /usr/lib/osvr-plugins-0/com_osvr_user_settings.so with error: /usr/lib/osvr-plugins-0/com_osvr_user_settings.so: undefined symbol: _ZN4Json5ValueaSES0_


pix3l commented on 2023-02-05 10:33 (UTC) (edited on 2023-02-05 10:34 (UTC) by pix3l)

 use_system_jsoncpp.patch

--- src/osvr-cpi/OSVR-CPI.pro.orig      2023-02-04 08:05:39.729698562 +0100
+++ src/osvr-cpi/OSVR-CPI.pro   2023-02-04 08:09:15.071538837 +0100
@@ -14,28 +14,28 @@

 SOURCES += main.cpp\
         mainwindow.cpp \
-    osvruser.cpp \
-    lib_json/json_reader.cpp \
-    lib_json/json_value.cpp \
-    lib_json/json_writer.cpp
+    osvruser.cpp #\
+#    lib_json/json_reader.cpp \
+#    lib_json/json_value.cpp \
+#    lib_json/json_writer.cpp

 HEADERS  += mainwindow.h \
     osvruser.h \
-    json/assertions.h \
-    json/autolink.h \
-    json/config.h \
-    json/features.h \
-    json/forwards.h \
-    json/json.h \
-    json/reader.h \
-    json/value.h \
-    json/version.h \
-    json/writer.h \
-    lib_json/json_batchallocator.h \
-    lib_json/json_tool.h \
+#    json/assertions.h \
+#    json/autolink.h \
+#    json/config.h \
+#    json/features.h \
+#    json/forwards.h \
+#    json/json.h \
+#    json/reader.h \
+#    json/value.h \
+#    json/version.h \
+#    json/writer.h \
+#    lib_json/json_batchallocator.h \
+#    lib_json/json_tool.h \
     version.h

-LIBS += -losvrUSBSerial
+LIBS += -losvrUSBSerial -ljsoncpp

 FORMS    += mainwindow.ui

pix3l commented on 2023-02-05 10:32 (UTC) (edited on 2023-02-05 10:33 (UTC) by pix3l)


diff --git a/PKGBUILD b/PKGBUILD
index da0fce2..7055f61 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,9 +7,9 @@ url="https://github.com/OSVR/OSVR-Config"
 #license=('GPL')
 #install=osvr-cpi.install
 makedepends=('git')
-depends=('osvr-core-git' 'fswatch')
-source=("osvr-cpi::git+https://github.com/ChristophHaag/OSVR-CPI.git")
-#    "Findjsoncpp.cmake")
+depends=('osvr-core-git' 'fswatch<1.13.0')
+source=("osvr-cpi::git+https://github.com/ChristophHaag/OSVR-CPI.git"
+    "use_system_jsoncpp.patch")

 pkgver() {
   cd "$srcdir/osvr-cpi"
@@ -21,6 +21,8 @@ pkgver() {

 prepare() {
   cd osvr-cpi
+  patch -p2 < "$srcdir/use_system_jsoncpp.patch"
+  rm -rf  json lib_json
 }

 build() {
@@ -55,6 +57,7 @@ package() {
   install -m755 UserSettingsClient "$pkgdir"/usr/bin
   #make DESTDIR="$pkgdir/" install
 }
-md5sums=('SKIP')
+md5sums=('SKIP'
+         '8affdd1682f05bc74b92da8b196d5f90')

 # vim:set ts=2 sw=2 et:

haagch commented on 2016-09-03 23:42 (UTC)

Spoiler: It doesn't work and will break your osvr_server display config. I'll look into that.

haagch commented on 2016-09-02 15:19 (UTC)

For now it installs from my fork at https://github.com/ChristophHaag/OSVR-CPI/commits/master Also no promises that it actually works yet.