Projet

Général

Profil

Actions

9.1 Installation des outils

Installer opencv 3.4.4 sur ubuntu 16.04

1. Mise à jour Ubuntu :

$ sudo apt-get update
$ sudo apt-get upgrade

2. Installer des paquets dépendants :

$ sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
$ sudo apt-get install python3.5-dev python3-numpy libtbb2 libtbb-dev qt5-default
$ sudo apt-get install libjpeg-dev libpng-dev libtiff5-dev libjasper-dev libdc1394-22-dev libeigen3-dev libtheora-dev libvorbis-dev
$ sudo apt-get install libxvidcore-dev libx264-dev sphinx-common libtbb-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev
$ sudo apt-get install libopenexr-dev libgstreamer-plugins-base1.0-dev libavutil-dev libavfilter-dev libavresample-dev

3. Obtenir Opencv :

$ cd /opt
/opt$ git clone https://github.com/Itseez/opencv.git
/opt$ git clone https://github.com/Itseez/opencv_contrib.git
/opt$ cd opencv_contrib
/opt/opencv_contrib$ git checkout 3.4.4
/opt/opencv_contrib$ cd ..
/opt$ cd opencv
/opt/opencv$ git checkout 3.4.4

4. Compiler et installer Opencv

/opt/opencv$ mkdir build
/opt/opencv$ cd build
/opt/opencv/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=ON \
-D WITH_V4L=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON ..

/opt/opencv/build$ make -j4
/opt/opencv/build$ make install
/opt/opencv/build$ ldconfig
/opt/opencv/build$ cd ~

5. Vérifier l'installation

$ pkg-config --modversion opencv

Télécharger Khepera III Toolbox

Télécharge le paquet

Une version plus ou moins stable est disponible sur le site de sourceforge project page : https://sourceforge.net/projects/khepera3toolbox/.

Une fois le téléchargement est fini, décompressez-le. C'est une méthode recommandé pour récupérer Kherpera III Toolbox sans faire des contributions.

Récupérer la nouvelle version avec SVN

Une nouvelle version peut être checking out par SVN tree :

$ svn checkout https://svn.code.sf.net/p/khepera3toolbox/code/

Cette méthode vous permets de faire des contributions vous-même, et récupérez la nouvelle version du code. Pour mettre à jour à une version récente :

$ svn update

Insaller outil cross-compilation

Linux à Korebot

Télécharger le fichier korebot-tools-i386-0.1.2.tar.gz sur le site : http://ftp.k-team.com/korebot/toolchain-i386/

Décompressez-le dans le répertoire de votre préférence : tar -xfz korebot-tools-i386-0.1.2.tar.gz

Ajouter bin répertoire à votre PATH variable environnement. Je vous conseille d'ajouter cette ligne dans .bashrc fichier.

Pour ouvrir le fichier .bashrc : $ votre_éditeur_de_texte (gedit/kate/leafpad...) .bashrc

Ajouter à la fin : export PATH=$PATH:/path/to/your/arm/toolchain/bin

Puis relancer le terminal.

Tester si ça fonctionne : $ arm-linux-gcc -h

Linux à Korebot 2

Télécharger le fichier korebot2-oetools-light-1.0-kb1.2.tar.bz2 et décompressez-le :

wget http://ftp.k-team.com/KorebotII/software/light_toolchain/korebot2-oetools-light-1.0-kb1.2.tar.bz2
tar xvjf korebot2-oetools-light-1.0-kb1.2.tar.bz2
sudo mv korebot2-oetools-1.0/ /usr/local/

Ajouter bin répertoire à votre PATH variable environnement. Je vous conseille d'ajouter cette ligne dans .bashrc fichier.

Pour ouvrir le fichier .bashrc : $ votre_éditeur_de_texte (gedit/kate/leafpad...) .bashrc

Ajouter à la fin : export PATH=$PATH:/usr/local/korebot2-oetools-1.0/tmp/cross/bin/

Puis relancer le terminal.

Tester si ça fonctionne : $ arm-angstrom-linux-gnueabi-gcc --help

Mis à jour par Anonyme il y a environ 4 ans · 1 révisions