New Build Linux (Debian based) - uglyDwarf/linuxtrack GitHub Wiki
This page provides instructions how to build Linuxtrack on linux; unless you have a reason to build Linuxtrack yourself, you should use the universal package for Linux that can be found here: https://github.com/uglyDwarf/linuxtrack/wiki/Downloads . Instructions to install the universal package are here: https://github.com/uglyDwarf/linuxtrack/wiki/universal-Linuxtrack-package .
First of all, some prerequisites have to be installed - find them in your favorite package manager.
They include (names from Debian Jessie, in other distributions might differ a bit):
apt-get install build-essential git-core automake libmxml-dev libopencv-dev autotools-dev libtool libc6-dev-i386 gcc-4.8-multilib gobjc libqt4-dev libqt4-opengl-dev libusb-1.0-0-dev libcwiid-dev zlib1g-dev libv4l-dev bison flex libopencv-core-dev libqtwebkit-dev nsis
Now lets assume you checked out sources from the repository into '/home//Code/linuxtrack' using this command
cd /home/<username>/Code
git clone https://github.com/uglyDwarf/linuxtrack.git
You should also install X-Plane SDK version 2.0.1 and higher (default path is '/usr/include/xplane_sdk' - e.g there is file '/usr/include/xplane_sdk/XPLM/XPLMCamera.h'), or specify option '--with-xplane-sdk' (e.g --with-xplane-sdk=/home//Code/SDK/CHeaders).
Also decide where the linuxtrack should be installed using --prefix option; in this example we are installing it into /home//Bin/ltr directory.
cd linuxtrack
./configure --with-xplane-sdk=/home/<username>/Code/SDK/CHeaders --with-wine-libs=-L/usr/lib/wine
make -j
sudo checkinstall --pkgname=linuxtrack --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes
It is possible that you'll see several warnings about re-linking libraries (they happen when you have linuxtrack already installed) and one saying that libltr.la wasn't installed. You can safely ignore them.
Now linuxtrack is installed along with the GUI
Last but not least - if you intend to use TrackIR, you'll have to install file 51-TIR.rules to your udev rules directory (might be /etc/udev/rules.d, but refer to your distro documentation). You can find this file in 'prefix/share/linuxtrack' directory. Then either restart udev service, or reboot the computer and replug the TrackIR.