Important!
The following document is a guide to install the CAR component.
It gives the steps to install CAR on Fedora 17 64bits from scratch.
To update CAR from a previous installation see this page.
Summary :
- Install ASUS Sensor and OpenNI
- Install PostgreSQL Database
- Install CAR package for the first time
- Test and use the CAR component
Requirements :
- You have a machine with Fedora 17 64bits installed. (get fedora 17 64bits)
- A network access on Internet is necessary.
- A user with administrative rights (with sudo or root) is necessary.
- You need wget and unzip programs (yum install wget unzip).
Instructions :
- You can copy and paste each commands.
- When it’s specified “As root”, you have to run the command with administrative rights :
- you can become root by running su before run the command,
- or with sudo, add sudo at the head of the command.
1 – Install ASUS Sensor and OpenNI
1.1 – Create a work directory :
In your home directory create the demcare folder :
cd ~ mkdir demcare cd demcare
1.2 – Get the OpenNI and Sensor driver :
Download the sources in the demcare folder :
wget https://team.inria.fr/stars/files/2013/06/OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar_.zip wget https://team.inria.fr/stars/files/2013/06/Sensor-Bin-Linux-x64-v5.1.2.1.tar_.zip
And extract the files into the same folder :
unzip OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar_.zip unzip Sensor-Bin-Linux-x64-v5.1.2.1.tar_.zip tar -xjf OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.bz2 tar -xjf Sensor-Bin-Linux-x64-v5.1.2.1.tar.bz2
1.3 – Install OpenNI and Sensor driver :
Run the install.sh script for OpenNI (As root) :
cd ~/demcare/OpenNI-Bin-Dev-Linux-x64-v1.5.4.0 ./install.sh
Run the install.sh script for Sensor driver (As root) :
cd ~/demcare/Sensor-Bin-Linux-x64-v5.1.2.1 ./install.sh
Update the libraries link cache (As root) :
ldconfig
1.4 – Check the installation :
If you want check now the installation of OpenNI see this page.
2 – Install PostgreSQL Database
2.1 – Activate the PostgreSQL 9.2 repository (As root) :
rpm -Uvh http://yum.postgresql.org/9.2/fedora/fedora-17-x86_64/pgdg-fedora92-9.2-6.noarch.rpm
Notice
To ensure you install the good package, you can exclude Fedora own PostgreSQL Packages (As root) :
Edit /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo and add the following line at the end of the fedora repository description :
exclude=postgresql*
yum makecache
2.2 – Install Postgresql packages (As root) :
yum install postgresql92 postgresql92-server postgresql92-contrib
The packages should be provides by pgdg92 repository.
2.3 – Initialise the database (As root) :
su - postgres -c /usr/pgsql-9.2/bin/initdb
Warning!
Please make sure that in the line above you employ a hyphen between su and postgres keywords.
2.4 – Configure PostgreSQL (As root) :
Edit /var/lib/pgsql/9.2/data/postgresql.conf to modify/uncomment following in the head of the file (As root) :
listen_addresses = '*' port = 5432
Edit PostgreSQL /var/lib/pgsql/9.2/data/pg_hba.conf file to have (As root) :
# “local” is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust host all all samenet trust # add this line
2.5 – Enable postgresql on every boot (As root) :
systemctl enable postgresql-9.2.service
Now Reboot the machine…
2.6 – Download the dump.sql :
Download the dump.sql in the demcare folder :
cd ~/demcare wget https://team.inria.fr/stars/files/2013/07/carDB_20130702.sql_.zip unzip carDB_20130702.sql_.zip
To allow all users to read the dump.sql file :
chmod ugo+rw carDB_20130702.sql mv ~/demcare/carDB_20130702.sql /tmp/
2.7 – Create the new demcare database (As root) :
To create the new demcare database, run the following commands (As root) :
su - postgres
Notice
If you need to clean or remove any previous demcare database, run this command before create the database :
dropdb demcare
Then run the following commands to build the database :
createdb --encoding=utf-8 --owner=postgres demcare psql -Upostgres -ddemcare -p5432 -f /tmp/carDB_20130702.sql exit
2.8 – Check the installation :
If you want check now the installation of OpenNI see this page.
3. Install CAR libraries for the first time
The actual version of SUP uses libpqxx version 4.
3.1 – Install CAR requirement (As root) :
Ensure you activated the repository in the step 2.1, and run the following command libpqxx :
Then, activate the RPM Fusion Repositories (As root) :
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-17.noarch.rpm rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-17.noarch.rpm yum makecache
Install libpqxx and FFmpeg (As root) :
yum install libpqxx libpqxx-devel
yum install ffmpeg
3.2 – Get SUP and OpenCV packages :
In the demcare folder, download the last version of SUP RPM and extract :
cd ~/demcare wget http://www-sop.inria.fr/stars/car-component/sup-fc17-x86_64.tar.bz2 tar -xjf sup-fc17-x86_64.tar.bz2
Download the OpenCV package :
wget https://team.inria.fr/stars/files/2013/06/opencv-devel-2.4.5-fc17-x86_64.zip unzip opencv-devel-2.4.5-fc17-x86_64.zip
3.3 – Install OpenCV (As root) :
rpm -ivh opencv-devel-2.4.5-fc17-x86_64.rpm --nodeps
3.4 – Install SUP (As root) :
Change directory to RPM dowloaded folder :
cd ~/demcare/
Before install Dtk RPM, install the requierments :
yum install libqt* libQt* qt-*
Now install Dtk and SUP RPM :
yum localinstall dtk-0.6.1-fc17-x86_64.rpm yum localinstall extra-0.0.1-fc17-x86_64.rpm sup-0.0.1-fc17-x86_64.rpm sup-plugins-0.0.1-fc17-x86_64.rpm
3.5 – Resolving library paths (As root) :
Create a new file /etc/ld.so.conf.d/inria.conf :
vi /etc/ld.so.conf.d/inria.conf
Edit the file to add this content :
/usr/local/inria/dtk/lib /usr/local/inria/sup/lib /usr/local/inria/3party/lib /usr/local/inria/extra/AnhTuan/lib /usr/local/inria/extra/MTS/lib /usr/local/inria/extra/DepthCompression/lib /usr/local/inria/extra/rleSegmentation/lib /usr/local/inria/extra/SED/lib /usr/local/inria/sup/plugins /usr/local/inria/sup/extralibs/lib
Update the libraries link cache :
ldconfig
3.6 – Check the installation :
If you want check now the installation of OpenNI see this page.
4. Test and use the CAR component
Now you are able to follow the following instructions :