Package Details: linuxtrack 0.99.19-3

Git Clone URL: https://aur.archlinux.org/linuxtrack.git (read-only, click to copy)
Package Base: linuxtrack
Description: Software for head motion tracking on linux.
Upstream URL: https://github.com/uglyDwarf/linuxtrack
Licenses: MIT
Provides: linuxtrack, trackir-udev
Submitter: blackleg
Maintainer: exuvo
Last Packager: asm0dey
Votes: 6
Popularity: 0.000000
First Submitted: 2013-01-08 18:48 (UTC)
Last Updated: 2022-02-16 08:14 (UTC)

Latest Comments

1 2 3 Next › Last »

marengo_hue commented on 2024-09-29 12:05 (UTC) (edited on 2024-09-29 12:06 (UTC) by marengo_hue)

applying this patch fixes the build issues, but cwiid dependency is broken. I managed to compile it locally, but had to extensively mess with the PKGBUILD and sources.

diff -ura linuxtrack-0.99.19/src/game_data.c new/src/game_data.c
--- linuxtrack-0.99.19/src/game_data.c  2016-11-13 15:02:40.000000000 +0100
+++ new/src/game_data.c 2024-09-29 13:57:23.764359106 +0200
@@ -139,7 +139,9 @@
     if(appid == NULL){
       fprintf(outfile, "%s \"%s\"\n", id, name);
     }else{
-      fprintf(outfile, "%s \"%s\" (%s)\n", id, name, appid->child->value.text.string);
+      mxml_node_t *child = mxmlGetFirstChild(appid);
+      int whitespace;
+      fprintf(outfile, "%s \"%s\" (%s)\n", id, name, mxmlGetText(child, &whitespace));
     }
   }
   fclose(outfile);
diff -ura linuxtrack-0.99.19/src/ltr_srv_master.cpp new/src/ltr_srv_master.cpp
--- linuxtrack-0.99.19/src/ltr_srv_master.cpp   2024-09-29 13:56:57.884731303 +0200
+++ new/src/ltr_srv_master.cpp  2024-09-29 13:57:42.024096458 +0200
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <pthread.h>
 #include "ltr_srv_comm.h"
 #include "ltr_srv_master.h"
 #include "linuxtrack.h"

mxml fix courtesy of rfvizarra (https://github.com/uglyDwarf/linuxtrack/commit/8e7a6a8de41c0f9f4eda339233616a699d5b8abb)

endigma commented on 2023-12-09 00:07 (UTC)

This doesn't work anymore, issues with python2, qtwebkit and qt4

cabezacabra commented on 2022-03-27 12:12 (UTC) (edited on 2022-03-27 20:27 (UTC) by cabezacabra)

Fails for me on build

gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_recenter-ltr_recenter.o `test -f 'ltr_recenter.c' || echo './'`ltr_recenter.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -I/usr/include/xplane_sdk/XPLM -I/usr/include/xplane_sdk/Widgets -DIBM=0 -DAPL=0 -DLIN=1 -L/lib32 -L/usr/lib32 -fPIC -m32 -Wl,-rpath,/usr/lib/linuxtrack -DLIB_PATH=\"/usr/lib/linuxtrack/\" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c linuxtrack.c -o xlinuxtrack9_32_la-linuxtrack.o >/dev/null 2>&1
En el fichero incluido desde /usr/include/string.h:535,
                 desde ipc_utils.c:21:
En la función ‘strncpy’,
    incluido en línea de ‘ltr_int_connect_to_socket’ en ipc_utils.c:450:3:
osc_server.c: En la función ‘main’:
/usr/include/bits/string_fortified.h:95:10: aviso: el límite de ‘__builtin_strncpy’ especificado 108 es igual al tamaño del destino [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
En la función ‘strncpy’,
    incluido en línea de ‘ltr_int_make_socket’ en ipc_utils.c:402:3:
osc_server.c:193:47: aviso: la salida ‘__builtin___snprintf_chk’ podría truncarse antes del último carácter de formato [-Wformat-truncation=]
  193 |   snprintf(portString, sizeof(portString), "%d", port);
      |                                               ^
/usr/include/bits/string_fortified.h:95:10: aviso: el límite de ‘__builtin_strncpy’ especificado 108 es igual al tamaño del destino [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
En el fichero incluido desde /usr/include/stdio.h:894,
                 desde osc_server.c:1:
/usr/include/bits/stdio2.h:71:10: nota: ‘__builtin___snprintf_chk’ manda entre 5 y 11 bytes a un destino de tamaño 10
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_recenter-ltr_srv_comm.o `test -f 'ltr_srv_comm.c' || echo './'`ltr_srv_comm.c
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -Iqt_gui -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_extractor-hashing.o `test -f 'hashing.c' || echo './'`hashing.c
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -Iqt_gui -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_extractor-game_data.o `test -f 'game_data.c' || echo './'`game_data.c
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c sn4_model.cpp -o libfakeusb_la-sn4_model.o >/dev/null 2>&1
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -Iqt_gui -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_extractor-utils.o `test -f 'utils.c' || echo './'`utils.c
hashing.c: En la función ‘main’:
hashing.c:541:11: aviso: esta sentencia puede fracasar [-Wimplicit-fallthrough=]
  541 |         if(optarg != NULL){
      |           ^
hashing.c:545:7: nota: aquí
  545 |       case 'h':
      |       ^~~~
game_data.c: En la función ‘get_game_data’:
game_data.c:142:59: error: uso no válido del typedef incompleto ‘mxml_node_t’ {también conocido como ‘struct _mxml_node_s’}
  142 |       fprintf(outfile, "%s \"%s\" (%s)\n", id, name, appid->child->value.text.string);
      |                                                           ^~
make[3]: *** [Makefile:1231: ltr_extractor-game_data.o] Error 1
make[3]: *** Se espera a que terminen otras tareas....
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c tir_model.cpp -o libfakeusb_la-tir_model.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -I/usr/include/opencv4 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c facetrack.cpp -o libfacetrack_int_la-facetrack.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c sn3_model.cpp -o libfakeusb_la-sn3_model.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c tir4_model.cpp -o libfakeusb_la-tir4_model.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -DOPENCV -I/usr/include/opencv4 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c facetrack.cpp -o libft_la-facetrack.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -Wl,-rpath,/usr/lib/linuxtrack -DLIB_PATH=\"/usr/lib/linuxtrack/\" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c pref.cpp -o libltr_la-pref.o >/dev/null 2>&1
make[3]: se sale del directorio '/var/tmp/pamac-build-dani/linuxtrack/src/linuxtrack-0.99.19/src'
make[2]: *** [Makefile:842: all] Error 2
make[2]: se sale del directorio '/var/tmp/pamac-build-dani/linuxtrack/src/linuxtrack-0.99.19/src'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: se sale del directorio '/var/tmp/pamac-build-dani/linuxtrack/src/linuxtrack-0.99.19'
make: *** [Makefile:402: all] Error 2
==> ERROR: Se produjo un fallo en build().
    Cancelando...

asm0dey commented on 2022-02-16 08:11 (UTC)

Proposed change to make it build again

diff --git a/PKGBUILD b/PKGBUILD
index e820843..442e59c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,8 +13,10 @@ license=('MIT')
depends=('libusb' 'v4l-utils' 'zlib' 'mxml' 'qt4' 'qtwebkit'  'cwiid' 'opencv')
provides=("linuxtrack" "trackir-udev")

-source=(https://github.com/uglyDwarf/linuxtrack/archive/${pkgver}.tar.gz)
-sha256sums=('4d768d63225f9801abcb36d06b5e6d444dd7189cb01b17bc95cd81b5b4a5f73a')
+source=(https://github.com/uglyDwarf/linuxtrack/archive/${pkgver}.tar.gz
+mxml.patch::https://github.com/uglyDwarf/linuxtrack/commit/8e7a6a8de41c0f9f4eda339233616a699d5b8abb.patch)
+sha256sums=('4d768d63225f9801abcb36d06b5e6d444dd7189cb01b17bc95cd81b5b4a5f73a'
+'9ac3b83d4906d39aba85e3e4c3292fc6a105e1b0e98a52c4c2879bb045a8385c')

install=linuxtrack.install

@@ -29,6 +31,7 @@ build() {
sed -i 's/opencv >= 2\.0/opencv4/g' configure
sed -i 's/opencv2\/core\/core\.hpp/opencv2\/core\/core_c\.h/g' src/facetrack.cpp
sed -i 's/#include <opencv2/#include <opencv4\/opencv2/g' src/facetrack.cpp
+  patch --forward --strip=1 --input="${srcdir}/mxml.patch"
./configure --prefix=/usr --with-out
make
}
@@ -36,7 +39,7 @@ build() {
package() {
cd "$srcdir/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir/" install
-
+
# Uinput module
mkdir -p $pkgdir/etc/modules-load.d
echo uinput >> $pkgdir/etc/modules-load.d/uinput.conf

exuvo commented on 2021-08-04 20:07 (UTC)

I got the wine parts to work, use this repo https://github.com/exuvo/linuxtrack (fix for linuxtrack-wine compilation and includes changes by rfvizarra)

Replace qt4 and qtwebkit with qt5-dll, add mxml and nsis to depends. Currently nsis does not build with latest scons so use scons 4.1.0 from archive.archlinux.org which builds.

Then linuxtrack will detect and also build the wine bridge.

Run ltr_gui and use its misc->install linuxtrack-wine to extract the needed files from trackIRs installer. The final install step does not seem to work so we have to do that manually.

Run wine on /usr/share/linuxtrack/linuxtrack-wine.exe and install it. That should create drive_c/Program Files (x86)/Linuxtrack. Now copy the files the ltr_gui extracted (at .config/linuxtrack/tir_firmware/) into the new wine directory. Then run Tester64.exe to verify it works (it gives error boxes if any of the required files are missing).

To play with a game start Controller.exe first, then the game.

dreieck commented on 2021-04-28 18:27 (UTC)

Fails to build for me:

gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_server1-ipc_utils.o `test -f 'ipc_utils.c' || echo './'`ipc_utils.c
In file included from /usr/include/string.h:519,
                 from ipc_utils.c:21:
In function ‘strncpy’,
    inlined from ‘ltr_int_connect_to_socket’ at ipc_utils.c:450:3:
/usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |       __glibc_objsize (__dest));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ltr_int_make_socket’ at ipc_utils.c:402:3:
/usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |       __glibc_objsize (__dest));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o osc_server-osc_server.o `test -f 'osc_server.c' || echo './'`osc_server.c
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o osc_server-linuxtrack.o `test -f 'linuxtrack.c' || echo './'`linuxtrack.c
osc_server.c: In function ‘main’:
osc_server.c:193:47: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
  193 |   snprintf(portString, sizeof(portString), "%d", port);
      |                                               ^
In file included from /usr/include/stdio.h:866,
                 from osc_server.c:1:
/usr/include/bits/stdio2.h:71:10: note: ‘__builtin___snprintf_chk’ output between 5 and 11 bytes into a destination of size 10
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |        __glibc_objsize (__s), __fmt,
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |        __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_recenter-ltr_recenter.o `test -f 'ltr_recenter.c' || echo './'`ltr_recenter.c
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_recenter-ltr_srv_comm.o `test -f 'ltr_srv_comm.c' || echo './'`ltr_srv_comm.c
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -Iqt_gui -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_extractor-hashing.o `test -f 'hashing.c' || echo './'`hashing.c
hashing.c: In function ‘main’:
hashing.c:541:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
  541 |         if(optarg != NULL){
      |           ^
hashing.c:545:7: note: here
  545 |       case 'h':
      |       ^~~~
gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2   '-Wl,-rpath,/usr/lib/linuxtrack' '-DLIB_PATH="/usr/lib/linuxtrack/"' -Iqt_gui -g0 -march=x86-64 -mtune=native -O3 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o ltr_extractor-game_data.o `test -f 'game_data.c' || echo './'`game_data.c
game_data.c: In function ‘get_game_data’:
game_data.c:142:59: error: invalid use of incomplete typedef ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  142 |       fprintf(outfile, "%s \"%s\" (%s)\n", id, name, appid->child->value.text.string);
      |                                                           ^~
make[3]: *** [Makefile:1231: ltr_extractor-game_data.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/[...]/linuxtrack/src/linuxtrack-0.99.19/src'
make[2]: *** [Makefile:842: all] Error 2
make[2]: Leaving directory '/[...]/linuxtrack/src/linuxtrack-0.99.19/src'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: Leaving directory '/[...]/linuxtrack/src/linuxtrack-0.99.19'
make: *** [Makefile:402: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Berniyh commented on 2020-12-12 15:41 (UTC)

There is a qt5 port of linuxtrack available at which might allow to get rid of the qt4 dep: https://github.com/rfvizarra/linuxtrack

Also see this pull request (which wants to pull the qt5 port in) https://github.com/uglyDwarf/linuxtrack/pull/166 and (for opencv4): https://github.com/uglyDwarf/linuxtrack/pull/167

Determinant commented on 2020-08-04 02:21 (UTC)

To resolve the mxml issue, see: https://github.com/uglyDwarf/linuxtrack/commit/8e7a6a8de41c0f9f4eda339233616a699d5b8abb

Ape commented on 2020-07-04 05:19 (UTC)

Fails to build:

game_data.c:142:59: error: invalid use of incomplete typedef ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  142 |       fprintf(outfile, "%s \"%s\" (%s)\n", id, name, appid->child->value.text.string);

garyvdm commented on 2019-01-01 12:50 (UTC)

I've disowned this, if someone else wants to take it over.