Skip to contentSkip to conversation

mtdev: new package

PATCH New Stephan Hoffmann 2 participants 7 messages Aug 29, 2012 – Aug 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 mtdev: new package

The mtdev is a stand-alone library which transforms all variants of kernel multitouch events to the slotted type B protocol.

http://bitmath.org/code/mtdev/

---
 package/Config.in       |    1 +
 package/mtdev/Config.in |    8 ++++++++
 package/mtdev/mtdev.mk  |   14 ++++++++++++++
 3 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 package/mtdev/Config.in
 create mode 100644 package/mtdev/mtdev.mk
package/Config.in +1 -0
index f308de7..ff52e87 100644
@@ -383,6 +383,7 @@ source "package/libnfc-llcp/Config.in"
 source "package/libusb/Config.in"
 source "package/libusb-compat/Config.in"
 source "package/libv4l/Config.in"
+source "package/mtdev/Config.in"
 endmenu
 
 menu "Javascript"
package/mtdev/Config.in new file +8 -0
new file mode 100644
index 0000000..3419903
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_MTDEV
+	bool "mtdev"
+	help
+	  The mtdev is a stand-alone library which transforms all
+	  variants of kernel MT events to the slotted type B protocol.
+
+	  http://bitmath.org/code/mtdev/
+
package/mtdev/mtdev.mk new file +14 -0
new file mode 100644
index 0000000..09f76f2
@@ -0,0 +1,14 @@
+#############################################################
+#
+# mtdev
+#
+#############################################################
+MTDEV_VERSION = 1.1.3
+MTDEV_SOURCE = mtdev-$(MTDEV_VERSION).tar.bz2
+MTDEV_SITE = http://bitmath.org/code/mtdev/
+
+MTDEV_LICENSE = MIT
+MTDEV_LICENSE_FILES = COPYING
+MTDEV_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/4 liblo: new pachage

liblo is an implementation of the Open Sound Control protocol for POSIX systems.

http://liblo.sourceforge.net/

---
 package/Config.in       |    1 +
 package/liblo/Config.in |    8 ++++++++
 package/liblo/liblo.mk  |   14 ++++++++++++++
 3 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 package/liblo/Config.in
 create mode 100644 package/liblo/liblo.mk
package/Config.in +1 -0
index ff52e87..3da6306 100644
@@ -291,6 +291,7 @@ source "package/libcdaudio/Config.in"
 source "package/libcue/Config.in"
 source "package/libcuefile/Config.in"
 source "package/libid3tag/Config.in"
+source "package/liblo/Config.in"
 source "package/libmad/Config.in"
 source "package/libmpd/Config.in"
 source "package/libreplaygain/Config.in"
package/liblo/Config.in new file +8 -0
new file mode 100644
index 0000000..69848f8
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBLO
+	bool "liblo"
+	help
+	  liblo is an implementation of the Open Sound Control
+	  protocol for POSIX systems
+
+	  http://liblo.sourceforge.net/
+
package/liblo/liblo.mk new file +14 -0
new file mode 100644
index 0000000..924c3a7
@@ -0,0 +1,14 @@
+#############################################################
+#
+# liblo
+#
+#############################################################
+LIBLO_VERSION = 0.26
+LIBLO_SOURCE = liblo-$(LIBLO_VERSION).tar.gz
+LIBLO_SITE = http://downloads.sourceforge.net/project/liblo/liblo/$(LIBLO_VERSION)
+
+LIBLO_LICENSE = LGPLv2.1+
+LIBLO_LICENSE_FILES = COPYING
+LIBLO_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 3/4 mtdev2tuio: new package

In reply to Stephan Hoffmann

mtdev2tuio is a simple application for converting touch events to the standart TUIO 1.1 protocol.

https://github.com/olivopaolo/mtdev2tuio

---
 package/Config.in                |    1 +
 package/mtdev2tuio/Config.in     |   10 ++++++++++
 package/mtdev2tuio/mtdev2tuio.mk |   24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 package/mtdev2tuio/Config.in
 create mode 100644 package/mtdev2tuio/mtdev2tuio.mk
package/Config.in +1 -0
index 3da6306..a4da3c1 100644
@@ -463,6 +463,7 @@ source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
 source "package/liburcu/Config.in"
 source "package/lttng-libust/Config.in"
+source "package/mtdev2tuio/Config.in"
 source "package/orc/Config.in"
 source "package/poco/Config.in"
 source "package/protobuf/Config.in"
package/mtdev2tuio/Config.in new file +10 -0
new file mode 100644
index 0000000..697e219
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_MTDEV2TUIO
+	bool "mtdev2tuio"
+	select BR2_PACKAGE_LIBLO
+	select BR2_PACKAGE_MTDEV
+	help
+	  mtdev2tuio is a simple application for converting touch
+	  events captured from libmtdev to TUIO 1.1
+
+	  https://github.com/olivopaolo/mtdev2tuio
+
package/mtdev2tuio/mtdev2tuio.mk new file +24 -0
new file mode 100644
index 0000000..1a00f6a
@@ -0,0 +1,24 @@
+#############################################################
+#
+# mtdev2tuio
+#
+#############################################################
+MTDEV2TUIO_VERSION = e1e7378d86
+MTDEV2TUIO_SITE = git://github.com/olivopaolo/mtdev2tuio.git
+MTDEV2TUIO_DEPENDENCIES = mtdev liblo
+MTDEV2TUIO_LICENSE = GPLv3+
+MTDEV2TUIO_LICENSE_FILES = COPYING
+
+define MTDEV2TUIO_BUILD_CMDS
+$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_CC)" -C $(@D) 
+endef
+
+define MTDEV2TUIO_INSTALL_TARGET_CMDS
+$(INSTALL) -D -m 0755 $(@D)/mtdev2tuio $(TARGET_DIR)/usr/bin/
+endef
+
+define MTDEV2TUIO_CLEAN_CMDS
+$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_CC)" -C $(@D) clean
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.0.4
#3 lore raw

PATCH 4/4 qtuio: new package

In reply to Stephan Hoffmann

Implementation of an interface connecting TUIO messages and QT events

https://github.com/x29a/qTUIO

---
 package/Config.in       |    3 ++
 package/qtuio/Config.in |   18 ++++++++++++
 package/qtuio/qtuio.mk  |   68 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+), 0 deletions(-)
 create mode 100644 package/qtuio/Config.in
 create mode 100644 package/qtuio/qtuio.mk
package/Config.in +3 -0
index a4da3c1..1c7b221 100644
@@ -133,6 +133,9 @@ source "package/efl/Config.in"
 source "package/qt/Config.in"
 source "package/x11r7/Config.in"
 
+comment "QT libraries and helper libraries"
+source "package/qtuio/Config.in"
+
 comment "X libraries and helper libraries"
 source "package/liberation/Config.in"
 source "package/libsexy/Config.in"
package/qtuio/Config.in new file +18 -0
new file mode 100644
index 0000000..dfea228
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_QTUIO
+	bool "qtuio"
+	select BR2_PACKAGE_MTDEF2TUIO
+	depends on BR2_PACKAGE_QT
+	help
+	  Implementation of an interface connecting TUIO messages
+	  and QT events
+
+	  https://github.com/x29a/qTUIO
+
+comment "qtuio depends on QT"
+	depends on !BR2_PACKAGE_QT
+
+config BR2_QTUIO_EXAMPLES
+	bool "qtuio_examples"
+	depends on BR2_PACKAGE_QTUIO
+	help
+	  Build and install qtuio examples
package/qtuio/qtuio.mk new file +68 -0

68 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#4 lore raw

PATCH 4/4 qtuio: new package

Le Wed, 29 Aug 2012 11:01:09 +0200,
Stephan Hoffmann <[email protected]> a ?crit :

package/qtuio/Config.in line 3

Quoted 8 lines

new file mode 100644
index 0000000..dfea228

package/qtuio/Config.in new file +3 -0
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_QTUIO
+	bool "qtuio"
+	select BR2_PACKAGE_MTDEF2TUIO

Shouldn't this be MTDEV2TUIO ?

package/qtuio/Config.in line 4

Quoted 1 line
package/qtuio/Config.in new file +1 -0
+	depends on BR2_PACKAGE_QT

The code of qtuio also suggests it requires GUI support in Qt, so I guess some other dependencies are needed here.

package/qtuio/Config.in line 12

Quoted 8 lines
package/qtuio/Config.in new file +8 -0
+	help
+	  Implementation of an interface connecting TUIO messages
+	  and QT events
+
+	  https://github.com/x29a/qTUIO
+
+comment "qtuio depends on QT"
+	depends on !BR2_PACKAGE_QT

This comment should be below the examples config option in order to make sure that the examples config option gets "indented" under the main qtuio config option.

package/qtuio/Config.in line 15

Quoted 3 lines
package/qtuio/Config.in new file +3 -0
+
+config BR2_QTUIO_EXAMPLES
+	bool "qtuio_examples"

Make this "qtuio examples".

Quoted 9 lines
package/qtuio/Config.in new file +3 -0
+	depends on BR2_PACKAGE_QTUIO
+	help
+	  Build and install qtuio examples
package/qtuio/qtuio.mk new file +0 -0
new file mode 100644
index 0000000..efaeae8

package/qtuio/qtuio.mk line 8

Quoted 8 lines
package/qtuio/qtuio.mk new file +8 -0
@@ -0,0 +1,68 @@
+#############################################################
+#
+# qTUIO
+#
+#############################################################
+QTUIO_VERSION = abe4973ff6
+QTUIO_SITE = git://github.com/x29a/qTUIO.git
+QTUIO_DEPENDENCIES = qt mtdev2tuio

Is mtdev2tuio really a build-time dependency? I don't think so. If it isn't, then keep the select in the Config.in file, but remove the build-time dependency here. Add a comment above the select in Config.in that explicitly says that it is a runtime dependency only.

package/qtuio/qtuio.mk line 21

Quoted 12 lines
package/qtuio/qtuio.mk new file +12 -0
+QTUIO_LICENSE = GPLv3+
+QTUIO_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_QTUIO_EXAMPLES),y)
+define QTUIO_CONFIGURE_EXAMPLES
+cd $(@D)/examples/dials && $(QT_QMAKE)
+cd $(@D)/examples/fingerpaint && $(QT_QMAKE)
+cd $(@D)/examples/knobs && $(QT_QMAKE)
+cd $(@D)/examples/pinchzoom && $(QT_QMAKE)
+## pong depends on QtOpenGL cd $(@D)/examples/pong && $(QT_QMAKE)
+endef
+endif

Mention the pong thing as a comment somewhere, only once, and don't include the compile line if it isn't supported. Also, you could simplify this as follows:

	for example in dials fingerpaint knobs pinchzoom ; do \
		(cd $(@D)/examples/$${examples} && $(QT_QMAKE)) ; \
	done

And indent the code with one tab.

package/qtuio/qtuio.mk line 26

Quoted 4 lines
package/qtuio/qtuio.mk new file +4 -0
+define QTUIO_CONFIGURE_CMDS
+cd $(@D)/src && $(QT_QMAKE)
+$(QTUIO_CONFIGURE_EXAMPLES)
+endef

Indent with one tab.

package/qtuio/qtuio.mk line 36

Quoted 9 lines
package/qtuio/qtuio.mk new file +9 -0
+ifeq ($(BR2_QTUIO_EXAMPLES),y)
+define QTUIO_BUILD_EXAMPLES
+$(MAKE) -C $(@D)/examples/dials
+$(MAKE) -C $(@D)/examples/fingerpaint
+$(MAKE) -C $(@D)/examples/knobs
+$(MAKE) -C $(@D)/examples/pinchzoom
+## pong depends on QtOpenGL $(MAKE) -C $(@D)/examples/pong
+endef
+endif

Ditto: use a for loop + indent with one tab.

Quoted 7 lines
package/qtuio/qtuio.mk new file +7 -0
+define QTUIO_BUILD_CMDS
+$(MAKE) -C $(@D)/src
+$(QTUIO_BUILD_EXAMPLES)
+endef
+
+ifeq ($(BR2_QTUIO_EXAMPLES),y)
+define QTUIO_INSTALL_EXAMPLES

package/qtuio/qtuio.mk line 54

Quoted 10 lines
package/qtuio/qtuio.mk new file +10 -0
+$(INSTALL) -D -m 0755 $(@D)/examples/dials/dials $(TARGET_DIR)/usr/share/qtuio/dials
+$(INSTALL) -D -m 0755 $(@D)/examples/fingerpaint/fingerpaint $(TARGET_DIR)/usr/share/qtuio/fingerpaint
+$(INSTALL) -D -m 0755 $(@D)/examples/knobs/knobs $(TARGET_DIR)/usr/share/qtuio/knobs
+$(INSTALL) -D -m 0755 $(@D)/examples/pinchzoom/pinchzoom $(TARGET_DIR)/usr/share/qtuio/pinchzoom
+## pong depends on QtOpenGL $(INSTALL) -D -m 0755 $(@D)/examples/pong/pong $(TARGET_DIR)/usr/share/qtuio/pong
+endef
+endif
+
+define QTUIO_INSTALL_TARGET_CMDS
+$(INSTALL) -D -m 0755 $(@D)/lib/libqTUIO.so* $(TARGET_DIR)/usr/lib

Normally, install -D requires the complete destination filename as second argument. We usually use cp when multiple files need to be copied at once.

Doesn't the qtuio package has a usable 'make install' ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#5 lore raw

PATCH 4/4 qtuio: new package

Hi Thomas,

thanks for the comments!
Am 30.08.2012 05:53, schrieb Thomas Petazzoni:

Quoted 5 lines

Le Wed, 29 Aug 2012 11:01:09 +0200,
Stephan Hoffmann <[email protected]> a ?crit :

package/qtuio/Config.in line 3

Quoted 1 line
package/qtuio/Config.in new file +1 -0
+	select BR2_PACKAGE_MTDEF2TUIO

Shouldn't this be MTDEV2TUIO ?

Stupid typo;.)

Quoted 3 lines

package/qtuio/Config.in line 4

Quoted 1 line
package/qtuio/Config.in new file +1 -0
+	depends on BR2_PACKAGE_QT

The code of qtuio also suggests it requires GUI support in Qt, so I guess some other dependencies are needed here.

That's right

Quoted 6 lines

+QTUIO_DEPENDENCIES = qt mtdev2tuio
Is mtdev2tuio really a build-time dependency? I don't think so. If it isn't, then keep the select in the Config.in file, but remove the build-time dependency here. Add a comment above the select in Config.in that explicitly says that it is a runtime dependency only.

Thinking about it, it is not a dependency at all, since one may use a real TUIO capable touch device.

Quoted 7 lines

+define QTUIO_INSTALL_TARGET_CMDS

Quoted 1 line

+$(INSTALL) -D -m 0755 $(@D)/lib/libqTUIO.so* $(TARGET_DIR)/usr/lib

Normally, install -D requires the complete destination filename as second argument. We usually use cp when multiple files need to be copied at once.

Doesn't the qtuio package has a usable 'make install' ?

Doesn't seem so.

Fixed patch coming soon

Regards

Stephan

Quoted 1 line

Thomas

Signature · 4 lines
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de     sho at reLinux.de
#6 lore raw

PATCH 1/4 mtdev: new package

In reply to Stephan Hoffmann

Le Wed, 29 Aug 2012 11:01:06 +0200,
Stephan Hoffmann <[email protected]> a ?crit :

Quoted 6 lines

The mtdev is a stand-alone library which transforms all variants of kernel multitouch events to the slotted type B protocol.

http://bitmath.org/code/mtdev/

Thanks, applied to next, together with 2/4 and 3/4. However, I haven't applied 4/4, I'll comment on this patch for the details.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com