Is there any working tutorial to show how to build OpenCV on Linux (CentOS) with GStreamer?

asked 2017-11-24 01:17:33 -0600

BAHRAMUDIN ADIL gravatar image

I am trying to build OpenCV on CentOS operating system with GStreamer, but cmake cannot find the packages for GStreamer. Here are two questions:

  1. Exactly what libs and software needed for building OpenCV on Linux, such as g++, and so on, by this question I mean that I don't want to install any extra and not necessary software on the system?
  2. How to install the GStreamer and configure it with OpenCV

Heres is what I have done so far: I have installed CentOS 7, and searching for this topic on the internet and did something these operations:

  • yum update to update the system (as said on the internet, I think it is not a good solution)
  • When the update was done, start building OpenCV

Everything goes well, but when looking at the cmake log, here said that cannot found GStreamer and so on. It is the log output: I put only the important parts

> The CXX compiler identification is GNU
> 4.8.5 The C compiler identification is GNU 4.8.5 Check for working CXX
> compiler: /usr/bin/c++ Check for
> working CXX compiler: /usr/bin/c++ --
> works Detecting CXX compiler ABI info
> Detecting CXX compiler ABI info - done
> Detecting CXX compile features
> Detecting CXX compile features - done
> Check for working C compiler:
> /usr/bin/cc Check for working C
> compiler: /usr/bin/cc -- works
> Detecting C compiler ABI info
> Detecting C compiler ABI info - done
> Detecting C compile features Detecting
> C compile features - done

Checking for module 'gtk+-3.0'
  No package 'gtk+-3.0' found
Checking for module 'gtk+-2.0'
  No package 'gtk+-2.0' found
Checking for module 'gthread-2.0'
  No package 'gthread-2.0' found
Checking for module 'gstreamer-base-1.0'
  No package 'gstreamer-base-1.0' found
Checking for module 'gstreamer-video-1.0'
  No package 'gstreamer-video-1.0' found
Checking for module 'gstreamer-app-1.0'
  No package 'gstreamer-app-1.0' found
Checking for module 'gstreamer-riff-1.0'
  No package 'gstreamer-riff-1.0' found
Checking for module 'gstreamer-pbutils-1.0'
  No package 'gstreamer-pbutils-1.0' found
Checking for module 'gstreamer-base-0.10'
  No package 'gstreamer-base-0.10' found
Checking for module 'gstreamer-video-0.10'
  No package 'gstreamer-video-0.10' found
Checking for module 'gstreamer-app-0.10'
  No package 'gstreamer-app-0.10' found
Checking for module 'gstreamer-riff-0.10'
  No package 'gstreamer-riff-0.10' found
Checking for module 'gstreamer-pbutils-0.10'
  No package 'gstreamer-pbutils-0.10' found
Checking for module 'libdc1394-2'
  No package 'libdc1394-2' found
Checking for module 'libdc1394'
  No package 'libdc1394' found

Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
  No package 'libavcodec' found
  No package 'libavformat' found
  No package 'libavutil' found
  No package 'libswscale' found
Checking for module 'libavresample'
  No package 'libavresample' found
Checking for module 'libgphoto2'
  No package 'libgphoto2' found

General configuration for OpenCV 3.3.1-dev =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2017-11-23T15:53:39Z
    Host:                        Linux 3.10.0-693.5.2.el7.x86_64 x86_64
    CMake:                       3.10.0-rc3
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/gmake
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2 SSE3
      requested ...
(more)
edit retag flag offensive close merge delete