meta données pour cette page
  •  

OpenCV 3.2 + GStreamer Linux

Installer CMake

sudo apt-get install cmake

Installer GStreamer 1.0

sudo apt-get install libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-base1.0-0-dev libgstreamer1.0 libgstreamer1.0dev libgstreamer-plugins-base1.0-dev libgtk-3-dev

Récuperer les sources d'OpenCV

cd ~/<my_working_directory>
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git

Créer un répertoire Temporaire de construction :

cd ~/opencv
mkdir build
cd build

Préparer la compilation CMake :

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D WITH_GSTREAMER=ON .

Compiler

make -j8

Installer opencv:

sudo make install

Sources :

http://docs.opencv.org/trunk/d7/d9f/tutorial_linux_install.html

http://answers.opencv.org/question/95734/cmake-not-picking-gstreamer-on-ubuntu/?answer=163105#post-id-163105