Compilando o Reactivision em uma Raspberry Pi
Compiling Reactivision on the R-pi
First of all, download the source files : http://sourceforge.net/projects/reactivision/files/reacTIVision/reacTIVision-1.5/reacTIVision-1.5-src.zip/download
Then, we need to install dependencies, but it´s a little tricky.
You´ll need to install> libsdl 2.0 libdc1394 2.0 libasound and turbo jpeg
To install libSDL 2, download this script (https://gist.github.com/blacktm/8268a468f933eba46f80/raw/b51a843de3b35ca6e574af1ef2f18c262114fc05/install_sdl2_rpi.sh)
Then run on the terminal:
$ chmod 555 “script name”
$ ./”scriptname”
scriptname in that case will be install_sdl2_spi.sh
Takes about an hour
Now, turbojpeg.
Run
$ sudo nano /etc/apt/sources.list
copy and paste the following lines:
deb http://zarrenspry.info/repos/apt/raspbian testing main
deb-src http://zarrenspry.info/repos/apt/raspbian testing main
then, add gpg:
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -
(remember to sudo)
Install it all:
$ sudo apt-get update
$ sudo apt-get install libjpeg-turbo-tools libturbojpeg libturbojpeg-dev libturbojpeg8 libturbojpeg8-dev
libdc1394 is already installed in latest versions of raspbian, but we´ll have to install the whole suite, so:
sudo apt-get install gcc libasound2 libasound2-dev
Now, extract the zip:
unzip reacTIVision-1.5-src.zip /reacTIVision-1.5-src
navigate to the linux folder:
$ cd reacTIVision-1.5-src/linux
$ sudo make install
Have Fun!
First of all, download the source files : http://sourceforge.net/projects/reactivision/files/reacTIVision/reacTIVision-1.5/reacTIVision-1.5-src.zip/download
Then, we need to install dependencies, but it´s a little tricky.
You´ll need to install> libsdl 2.0 libdc1394 2.0 libasound and turbo jpeg
To install libSDL 2, download this script (https://gist.github.com/blacktm/8268a468f933eba46f80/raw/b51a843de3b35ca6e574af1ef2f18c262114fc05/install_sdl2_rpi.sh)
Then run on the terminal:
$ chmod 555 “script name”
$ ./”scriptname”
scriptname in that case will be install_sdl2_spi.sh
Takes about an hour
Now, turbojpeg.
Run
$ sudo nano /etc/apt/sources.list
copy and paste the following lines:
deb http://zarrenspry.info/repos/apt/raspbian testing main
deb-src http://zarrenspry.info/repos/apt/raspbian testing main
then, add gpg:
wget -O - http://zarrenspry.info/zarrenspry.gpg.key|apt-key add -
(remember to sudo)
Install it all:
$ sudo apt-get update
$ sudo apt-get install libjpeg-turbo-tools libturbojpeg libturbojpeg-dev libturbojpeg8 libturbojpeg8-dev
libdc1394 is already installed in latest versions of raspbian, but we´ll have to install the whole suite, so:
sudo apt-get install gcc libasound2 libasound2-dev
Now, extract the zip:
unzip reacTIVision-1.5-src.zip /reacTIVision-1.5-src
navigate to the linux folder:
$ cd reacTIVision-1.5-src/linux
$ sudo make install
Have Fun!