Skip to contentSkip to conversation

qt-gstreamer: new package

PATCH New Jérôme Pouiller 1 participant 2 messages Nov 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt-gstreamer: new package

QtGStreamer is a set of libraries providing C++ bindings for GStreamer with a Qt-style API, plus some helper classes and elements for integrating GStreamer better in Qt applications.

Notice that in order to be compatible with gstreamer 0.10 and 1.x, this patch add support for either qt-gstreamer 0.10 and 1.x. I hesitated to split these two versions in two separate packages. Finaly, I noticed if I made two packages there would be a lot of code duplication (even patches are exactly sames).

---
 package/Config.in                                  |  1 +
 package/qt-gstreamer/Config.in                     | 24 ++++++
 .../qt-gstreamer-0001-install-examples.patch       | 50 +++++++++++++
 ...eamer-0002-fix-quick1-module-install-path.patch | 12 +++
 package/qt-gstreamer/qt-gstreamer.mk               | 87 ++++++++++++++++++++++
 5 files changed, 174 insertions(+)
 create mode 100644 package/qt-gstreamer/Config.in
 create mode 100644 package/qt-gstreamer/qt-gstreamer-0001-install-examples.patch
 create mode 100644 package/qt-gstreamer/qt-gstreamer-0002-fix-quick1-module-install-path.patch
 create mode 100644 package/qt-gstreamer/qt-gstreamer.mk
package/Config.in +1 -0
index 28cf703..09df62d 100644
@@ -26,6 +26,7 @@ menu "Audio and video applications"
 	source "package/on2-8170-libs/Config.in"
 	source "package/opus-tools/Config.in"
 	source "package/pulseaudio/Config.in"
+	source "package/qt-gstreamer/Config.in"
 	source "package/sox/Config.in"
 	source "package/tidsp-binaries/Config.in"
 	source "package/tstools/Config.in"
package/qt-gstreamer/Config.in new file +24 -0
new file mode 100644
index 0000000..81572e2
@@ -0,0 +1,24 @@
+comment "qt-gstreamer need Qt (4 or 5) and gstreamer (0.10 or 1.0)"
+	depends on !(BR2_PACKAGE_QT5 || BR2_PACKAGE_QT4)
+	depends on !(BR2_PACKAGE_GSTREAMER || BR2_PACKAGE_GSTREAMER1)
+
+config BR2_PACKAGE_QT_GSTREAMER
+	bool "qt-gstreamer"
+	select BR2_PACKAGE_BOOST
+	depends on BR2_PACKAGE_QT5 || BR2_PACKAGE_QT4
+	depends on BR2_PACKAGE_GSTREAMER || BR2_PACKAGE_GSTREAMER1
+	help
+	  QtGStreamer is a set of libraries providing C++ bindings for GStreamer
+	  with a Qt-style API, plus some helper classes and elements for
+	  integrating GStreamer better in Qt applications.
+
+	  http://gstreamer.freedesktop.org/modules/qt-gstreamer.html
+
+if BR2_PACKAGE_QT_GSTREAMER
+
+config BR2_PACKAGE_QT_GSTREAMER_EXAMPLES
+	bool "Install exemples"
+	help
+	  Compile and install exemples on target
+
+endif
package/qt-gstreamer/qt-gstreamer-0001-install-examples.patch new file +50 -0

50 lines not on this page · raw message

package/qt-gstreamer/qt-gstreamer-0002-fix-quick1-module-install-path.patch new file +12 -0
new file mode 100644
index 0000000..6d5d3c5
@@ -0,0 +1,12 @@
+diff -ru a/qt-gstreamer-0.10.3/CMakeLists.txt b/qt-gstreamer-0.10.3/CMakeLists.txt
+--- a/CMakeLists.txt	2013-10-14 08:44:40.000000000 +0000
++++ b/CMakeLists.txt	2014-10-21 12:19:49.475542801 +0000
+@@ -161,6 +161,8 @@
+         set(QTGSTREAMER_QTQUICK1_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/qt4/imports)
+     endif()
+ endif()
++set(QTGSTREAMER_QTQUICK1_INSTALL_DIR ${QTGSTREAMER_QTQUICK1_INSTALL_DIR} CACHE PATH "Installation path QtQuick1 modules")
++set(QTGSTREAMER_QTQUICK2_INSTALL_DIR ${QTGSTREAMER_QTQUICK2_INSTALL_DIR} CACHE PATH "Installation path QtQuick2 modules")
+ 
+ 
+ if (QTGSTREAMER_CODEGEN AND FLEX_FOUND AND BISON_FOUND)
package/qt-gstreamer/qt-gstreamer.mk new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 qt-gstreamer: new package

Quoted 20 lines · On Monday 10 November 2014 14:00:40 J?r?me Pouiller wrote:

QtGStreamer is a set of libraries providing C++ bindings for GStreamer with a Qt-style API, plus some helper classes and elements for integrating GStreamer better in Qt applications.

Notice that in order to be compatible with gstreamer 0.10 and 1.x, this patch add support for either qt-gstreamer 0.10 and 1.x. I hesitated to split these two versions in two separate packages. Finaly, I noticed if I made two packages there would be a lot of code duplication (even patches are exactly sames).

---
 package/Config.in                                  |  1 +
 package/qt-gstreamer/Config.in                     | 24 ++++++
 .../qt-gstreamer-0001-install-examples.patch       | 50 +++++++++++++
 ...eamer-0002-fix-quick1-module-install-path.patch | 12 +++
 package/qt-gstreamer/qt-gstreamer.mk               | 87
++++++++++++++++++++++ 5 files changed, 174 insertions(+)
 create mode 100644 package/qt-gstreamer/Config.in
 create mode 100644
Quoted 4 lines

package/qt-gstreamer/qt-gstreamer-0001-install-examples.patch create mode 100644 package/qt-gstreamer/qt-gstreamer-0002-fix-quick1-module-install-path.patch create mode 100644 package/qt-gstreamer/qt-gstreamer.mk

Oops, forget this patch, I will post an updated version. Sorry for the noise.

Signature · 3 lines
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr