reacTIVision is a great open source fiducial tracker/multi touch finger tracking software thats used for an assortment of applications, one being multi touch tables.
I am developing an LLP multi touch table, and wanted to create everything native to the Pi. My plan is to use reacTIVision with openFrameworks on the Pi. I had followed this tutorial to setup oF, but this tutorial is dedicated to getting reacTIVision on the Pi.
So, I first downloaded on my mac the source file version for all platforms here: http://reactivision.sourceforge.net/#files
The purpose of this is to build from source under linux. The next bit was what was giving me a bit of issues, but follow the steps below for a successful compile.
(note: I enabled SSH on the pi first and foremost. This just makes things easier)
I downloaded the file on my main machine (mac) and sent through SSH the file to my desktop on the Pi (scp command).
to extract the reacTIVision tar.gz file, I used the command
tar -xzvf yourFileLocation.tar.gz
So, when trying for the first time to compile the make file found in: /home/pi/reacTIVision-1.4-src/linux I received a few errors. I am no Linux wiz, and any suggestions on a better approach are greatly appreciated. My first issue was a missing directory for a specific camera type when trying to launch makeFile, specifically , “filelibdc1394″. The reacTIVision software is looking for this directory that is not installed on the Pi, so I proceeded as follows:
- sudo apt-get -y install libdc1394-22-dev libdc1394-22 libdc1394-utils
**to note: I recently tried to compile the make file and received a new error with a missing SDL dependency. if this happens, i followed along this forum thread here:
- sudo make install
Great! But I am not out in the clear, yet. As I attempted yet again to run the reacTIVision makeFile, I was hit with another missing dependency, specifically, lib4vl. The reacTIVision makeFile looks for the videodev.h file which isnt present, so you’ll need to first download libv4l and set it to the correct path as follows:
sudo apt-get install libv4l-dev
sudo ln -s ../libv4l1-videodev.h videodev.h
I did a fresh reboot, and then I navigated into the linux directory of the reacTIVision folder as follows:
once inside the directory, I ran the command “sudo make” and let the makeFile compile for the Pi. (its going to take some time!)
After compiling, I installed (while still in directory!) with “make clean” then, ”make install”.
DONE! to compile and launch reactivison, simply stay in the navigated folder for linux, and run the command, “make run”. All of the keyboard commands for the app adjustments are listed in the terminal window.