Angstrom: x11-gpe-image : Calibration of Screen ?
This was discussed early autumn and apparently there was a conflict between different libraries + X Windows versions, so it could not be done.
Any news here?
Signature · 2 lines
Best Regards Ulf Samuelsson
Ulf Samuelsson ha scritto, Il 19/01/2010 01:01:
Quoted 5 lines
This was discussed early autumn and apparently there was a conflict between different libraries + X Windows versions, so it could not be done.
Any news here?
No (really good) news,
but I'm currently working on this.
I tried to enable touchscreen calibration without success.
I built Xorg version Xorg-1.7.3 configured with --enable-xcalibrate but I didn't get this extension in my Xorg, so when I try to call xtscal I always get this error:
# xtscal XCALIBRATE extension missing: Success
I debugged a bit the following packages: xtscal_0.6.3, libxcalibrate_git, libxext_1.1.1
Temporary conclusion is that xtscal is no longer usable because the xcalibrate extension is only implemented for kdrive. Possible options are to use kdrive (hopefully not) or find another way to calibrate our touchscreen.
I am working on a new way to calibrate the screen in the xorg (not kdrive) way.
Any hints or help would be greatly appreciated.
Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen --
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
Quoted 6 lines · Marco Cavallini
Temporary conclusion is that xtscal is no longer usable because the xcalibrate extension is only implemented for kdrive. Possible options are to use kdrive (hopefully not) or find another way to calibrate our touchscreen.
I am working on a new way to calibrate the screen in the xorg (not kdrive) way.
Can you not simply repair XCALIBRATE in the xorg server? I don't think there's anything wrong with the wire protocol, and it seems a bit excessive to invent a completely new way of doing calibration just because that code isn't currently working.
p.
Phil Blundell ha scritto, Il 19/01/2010 14:32:
Quoted 8 lines · Marco Cavallini
Quoted 6 lines
Temporary conclusion is that xtscal is no longer usable because the xcalibrate extension is only implemented for kdrive. Possible options are to use kdrive (hopefully not) or find another way to calibrate our touchscreen.
I am working on a new way to calibrate the screen in the xorg (not kdrive) way.
Quoted 7 lines
Can you not simply repair XCALIBRATE in the xorg server? I don't think there's anything wrong with the wire protocol, and it seems a bit excessive to invent a completely new way of doing calibration just because that code isn't currently working.
p.
_______________________________________________
Phil,
actually I am trying to use xinput_calibrator
http://www.freedesktop.org/wiki/Software/xinput_calibrator
It looks a quite raw application and comes without autotools configuration making it hard to transform into an OE recipe.
OTOH I could dig further into xorg, but both ways looks quite hard to me due to my poor experience with xorg mechanics.
Any hints and help would be greatly appreciated.
Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen --
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
Marco Cavallini <[email protected]> [2010-01-19 14:48:19]:
Quoted 5 lines
actually I am trying to use
xinput_calibrator
http://www.freedesktop.org/wiki/Software/xinput_calibratorIt looks a quite raw application and comes without autotools configuration making it hard to transform into an OE recipe.
I have OE recipe for it, can send it to you later today.
-- ynezz
Quoted 14 lines
No (really good) news,
but I'm currently working on this.
I tried to enable touchscreen calibration without success.I built Xorg version Xorg-1.7.3 configured with --enable-xcalibrate but I didn't get this extension in my Xorg, so when I try to call xtscal
I always get this error:# xtscal XCALIBRATE extension missing: SuccessI debugged a bit the following packages: xtscal_0.6.3,
libxcalibrate_git, libxext_1.1.1
Quoted 8 lines
Temporary conclusion is that xtscal is no longer usable because the xcalibrate extension is only implemented for kdrive. Possible options are to use kdrive (hopefully not) or find another way to calibrate our touchscreen.
I am working on a new way to calibrate the screen in the xorg (not kdrive) way.Any hints or help would be greatly appreciated.
The tail end of last year I found some un-credited code :-o on the internet (believed to be public domain/GPL depending on the header of the file but that does not thrill me to be honest).
I started to work on a fresh reimplementation of that code to return calibration information that could be fed into either xinput evtouch or xinput evdev (if you use a recent version of either driver that supports calibration for TS devices). I never finished the reimplementation work so a lot of the code is still the original un-credited code.
Not sure if this is of any help/interest but wrapped in a suitable GUI (or even scripts and Zenity) it could provide a sensible way to calibrate a touchscreen in X using X drivers that use the Linux event handling interface (rather than TSLib).
Note: I can't even recall if this code builds (I strongly suspect not) as I just grabbed it off my hard drive where it has been rotting for a while. It's really for reference only and fit for nothing more than the scrap heap at a guess.
Regards,
John
Quoted 6 lines
I started to work on a fresh reimplementation of that code to return calibration information that could be fed into either xinput evtouch or xinput evdev (if you use a recent version of either driver that supports calibration for TS devices). I never finished the reimplementation work so a lot of the code is still the original un- credited code.
Typical,
All the funky work in http://www.freedesktop.org/wiki/Software/xinput_calibrator make any 2bit hacky code rather irrelevant. Time to get xinput_calibrator into OE :).
Thanks for the pointers to this app guys.
John
John Willis ha scritto, Il 19/01/2010 15:25:
Quoted 7 lines
Quoted 6 lines
I started to work on a fresh reimplementation of that code to return calibration information that could be fed into either xinput evtouch or xinput evdev (if you use a recent version of either driver that supports calibration for TS devices). I never finished the reimplementation work so a lot of the code is still the original un- credited code.
Quoted 6 lines
Typical,
All the funky work in http://www.freedesktop.org/wiki/Software/xinput_calibrator make any 2bit hacky code rather irrelevant. Time to get
xinput_calibratorinto OE :).Thanks for the pointers to this app guys.
John,
I appreciated your comment about it because looks like a general-purpose calibration tool useful with any kind of recent xorg server.
Let's wait Petr (ynezz) recipe and I am going to send back my results ;-)
Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen --
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
PATCH 1/1 xinput_calibrator: switch to autotools
In reply to Petr Štetiar--- ...01-switch-to-autotools-based-build-system.patch | 162 ++++++++++++++++++++ .../use-proper-compiler.patch | 20 --- .../xinput-calibrator/xinput-calibrator_0.5.0.bb | 7 +- 3 files changed, 166 insertions(+), 23 deletions(-) create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch
recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch new file +162 -0
@@ -0,0 +1,162 @@ +From 1a85be450fba4585c64b3178316603a5ad7dd4e6 Mon Sep 17 00:00:00 2001 +From: =?utf-8?q?Petr=20=C5=A0tetiar?= <[email protected]> +Date: Tue, 19 Jan 2010 18:59:52 +0100 +Subject: [PATCH] switch to autotools based build system +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit + +This patch autotoolize xinput_calibrator for easier (cross)compiling. + +Signed-off-by: Petr Štetiar <[email protected]> +--- + Makefile | 11 ----------- + Makefile.am | 41 +++++++++++++++++++++++++++++++++++++++++ + autogen.sh | 12 ++++++++++++ + configure.ac | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 102 insertions(+), 11 deletions(-) + delete mode 100644 Makefile + create mode 100644 Makefile.am + create mode 100755 autogen.sh + create mode 100644 configure.ac + +diff --git a/Makefile b/Makefile +deleted file mode 100644 +index c6eabed..0000000 +--- a/Makefile ++++ /dev/null +@@ -1,11 +0,0 @@ +-all: x11 gtkmm +- +-x11: main_x11.cpp gui_x11.cpp +- g++ -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11 +- cp xinput_calibrator.x11 xinput_calibrator +- +-gtkmm: main_gtkmm.cpp gui_gtkmm.cpp +- g++ -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm +- +-clean: +- rm -f xinput_calibrator xinput_calibrator.x11 xinput_calibrator.gtkmm +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..ef8f531 +--- /dev/null ++++ b/Makefile.am +@@ -0,0 +1,41 @@ ++# ++# Copyright (c) 2010 Petr Stetiar <[email protected]> ++# ++# Permission is hereby granted, free of charge, to any person ++# obtaining a copy of this software and associated documentation ++# files (the "Software"), to deal in the Software without ++# restriction, including without limitation the rights to use, ++# copy, modify, merge, publish, distribute, sublicense, and/or sell ++# copies of the Software, and to permit persons to whom the ++# Software is furnished to do so, subject to the following ++# conditions: ++# ++# The above copyright notice and this permission notice shall be ++# included in all copies or substantial portions of the Software. ++# ++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ++# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ++# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ++# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ++# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ++# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ++# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR ++# OTHER DEALINGS IN THE SOFTWARE. ++# ++ ++#AM_CFLAGS = -Wall -ansi -pedantic -W -Wmissing-prototypes -Wmissing-declarations -Werror -std=gnu99 ++ ++if BUILD_GTKMM ++bin_PROGRAMS = xinput_calibrator_x11 xinput_calibrator_gtkmm ++xinput_calibrator_gtkmm_SOURCES = main_gtkmm.cpp ++xinput_calibrator_gtkmm_CXXFLAGS = $(GTKMM_CFLAGS) ++xinput_calibrator_gtkmm_LDADD = $(GTKMM_LIBS) ++else ++bin_PROGRAMS = xinput_calibrator_x11 ++endif ++ ++xinput_calibrator_x11_LDADD = $(XORG_LIBS) ++xinput_calibrator_x11_CFLAGS = $(XORG_CFLAGS) ++xinput_calibrator_x11_SOURCES = main_x11.cpp ++ ++EXTRA_DIST = autogen.sh +diff --git a/autogen.sh b/autogen.sh +new file mode 100755 +index 0000000..904cd67 +--- /dev/null ++++ b/autogen.sh +@@ -0,0 +1,12 @@ ++#! /bin/sh ++ ++srcdir=`dirname $0` ++test -z "$srcdir" && srcdir=. ++ ++ORIGDIR=`pwd` ++cd $srcdir ++ ++autoreconf -v --install || exit 1 ++cd $ORIGDIR || exit $? ++ ++$srcdir/configure --enable-maintainer-mode "$@" +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..13257b4 +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,49 @@ ++# ++# Copyright (c) 2010 Petr Stetiar <[email protected]> ++# ++# Permission is hereby granted, free of charge, to any person ++# obtaining a copy of this software and associated documentation ++# files (the "Software"), to deal in the Software without ++# restriction, including without limitation the rights to use, ++# copy, modify, merge, publish, distribute, sublicense, and/or sell ++# copies of the Software, and to permit persons to whom the ++# Software is furnished to do so, subject to the following ++# conditions: ++# ++# The above copyright notice and this permission notice shall be ++# included in all copies or substantial portions of the Software. ++# ++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ++# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ++# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ++# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ++# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ++# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ++# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR ++# OTHER DEALINGS IN THE SOFTWARE. ++# ++ ++AC_PREREQ([2.57]) ++AC_INIT(xinput_calibrator,[0.5.0], [http://github.com/tias/xinput_calibrator]) ++AM_INIT_AUTOMAKE([foreign dist-bzip2]) ++AM_MAINTAINER_MODE ++ ++AC_PROG_CC ++AC_PROG_CXX ++AC_PROG_INSTALL ++ ++AC_ARG_ENABLE([gtkmm], AS_HELP_STRING([--enable-gtkmm], [Enable GTKMM GUI])) ++AS_IF([test "x$enable_gtkmm" = "xyes"], [ ++ PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4]) ++ AC_SUBST(GTKMM_CFLAGS) ++ AC_SUBST(GTKMM_LIBS) ++]) ++ ++AM_CONDITIONAL([BUILD_GTKMM], [test "x$enable_gtkmm" = "xyes"]) ++ ++PKG_CHECK_MODULES(XORG, [x11 xi]) ++AC_SUBST(XORG_CFLAGS) ++AC_SUBST(XORG_LIBS) ++ ++AC_CONFIG_FILES(Makefile) ++AC_OUTPUT +-- +1.6.0.4 +
recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch deleted +0 -20
@@ -1,20 +0,0 @@ ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- git.orig/Makefile -+++ git/Makefile -@@ -1,11 +1,11 @@ - all: x11 gtkmm - - x11: main_x11.cpp gui_x11.cpp -- g++ -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11 -+ $(CXX) $(CFLAGS) $(LDFLAGS) -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11 - cp xinput_calibrator.x11 xinput_calibrator - - gtkmm: main_gtkmm.cpp gui_gtkmm.cpp -- g++ -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm -+ $(CXX) $(CFLAGS) $(LDFLAGS) -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm - - clean: - rm -f xinput_calibrator xinput_calibrator.x11 xinput_calibrator.gtkmm
recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb +4 -3
@@ -2,12 +2,13 @@ DEPENDS = "virtual/libx11 libxi" SRCREV = "6af268f1b435f7bdd83335092ddc684054df2110" SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \ - file://use-proper-compiler.patch;patch=1" + file://0001-switch-to-autotools-based-build-system.patch;patch=1" +PR = "r1" +inherit autotools S = "${WORKDIR}/git/" -EXTRA_OEMAKE = "x11" do_install() { install -d ${D}${bindir} - install -m 0755 xinput_calibrator ${D}${bindir} + install -m 0755 xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator }
Signature · 1 line
1.6.0.4
Re: [PATCH] xinput_calibrator: switch to autotools
Quoted 8 lines · Petr Štetiar
Signed-off-by Petr Štetiar <[email protected]>--- ...01-switch-to-autotools-based-build-system.patch | 162 ++++++++++++++++++++ .../use-proper-compiler.patch | 20 --- .../xinput-calibrator/xinput-calibrator_0.5.0.bb | 7 +- 3 files changed, 166 insertions(+), 23 deletions(-) create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch
something's wrong with that patch. I can't apply it locally :-(
Re: [PATCH] xinput_calibrator: switch to autotools
Rolf Leggewie <[email protected]> [2010-01-19 21:51:16]:
Quoted 11 lines
Quoted 8 lines · Petr Štetiar
Signed-off-by Petr Štetiar <[email protected]>--- ...01-switch-to-autotools-based-build-system.patch | 162 ++++++++++++++++++++ .../use-proper-compiler.patch | 20 --- .../xinput-calibrator/xinput-calibrator_0.5.0.bb | 7 +- 3 files changed, 166 insertions(+), 23 deletions(-) create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patchsomething's wrong with that patch. I can't apply it locally :-(
Hi,
please can you tell me the reason, error message? Thanks.
-- ynezz
Re: [PATCH] xinput_calibrator: switch to autotools
Petr Štetiar <[email protected]> [2010-01-19 21:59:33]:
Quoted 12 lines
Rolf Leggewie <[email protected]> [2010-01-19 21:51:16]:
Quoted 10 lines
Quoted 8 lines · Petr Štetiar
Signed-off-by Petr Štetiar <[email protected]>--- ...01-switch-to-autotools-based-build-system.patch | 162 ++++++++++++++++++++ .../use-proper-compiler.patch | 20 --- .../xinput-calibrator/xinput-calibrator_0.5.0.bb | 7 +- 3 files changed, 166 insertions(+), 23 deletions(-) create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch
Quoted 5 lines
Quoted 1 line
something's wrong with that patch. I can't apply it locally :-(
Hi,
please can you tell me the reason, error message? Thanks.
Found it and send v2 of this patch. Sorry for the noise, but it was done against my private branch :(
-- ynezz