From: Uwe Hermann Date: Fri, 28 Dec 2018 18:10:41 +0000 (+0100) Subject: Add new dependency: libgstreamermm >= 1.8.0. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c9f573751bab3f53066aa87486f38216fde67ac8;p=pulseview.git Add new dependency: libgstreamermm >= 1.8.0. Also, initialize gstreamermm in main(). --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b6f25e27..bef88ecb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,7 @@ add_subdirectory(manual) list(APPEND PKGDEPS glib-2.0>=2.28.0) list(APPEND PKGDEPS glibmm-2.4>=2.28.0) +list(APPEND PKGDEPS gstreamermm-1.0>=1.8.0) set(LIBSR_CXX_BINDING "libsigrokcxx>=0.5.1") list(APPEND PKGDEPS "${LIBSR_CXX_BINDING}") diff --git a/INSTALL b/INSTALL index edb7940d..c68d575d 100644 --- a/INSTALL +++ b/INSTALL @@ -15,6 +15,7 @@ Requirements - cmake >= 2.8.12 - libglib >= 2.28.0 - glibmm-2.4 (>= 2.28.0) + - gstreamermm-1.0 (>= 1.8.0) - Qt5 (including the following components): - Qt5Core, Qt5Gui, Qt5Widgets, Qt5Svg - libboost >= 1.55 (including the following libs): diff --git a/main.cpp b/main.cpp index a77969ea..fca9aa79 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,8 @@ #include #include +#include + #include #include @@ -169,6 +171,9 @@ int main(int argc, char *argv[]) bool do_scan = true; bool show_version = false; + // Initialise gstreamermm. Must be called before any other GLib stuff. + Gst::init(); + Application a(argc, argv); #ifdef ANDROID