From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] qt4-embedded & tslib
Date: Thu, 24 Sep 2009 21:02:10 +0200 [thread overview]
Message-ID: <4ABBC232.7010901@eukrea.com> (raw)
In-Reply-To: <4AA43612.8070808@4d-electronics.co.nz>
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
Hi,
Matthew Dombroski wrote :
> Actually, the problem is that tslib is linked incorrectly.
> The pthres, linear, etc. modules are not linked to libts so theyre
> missing symbols when an attempt is made to load them.
> To confirm, do
>
> LD_PRELOAD=/usr/lib/libts-1.0.so.0 <args>
>
> tslib modules will resolve symbols properly so tslib will work.
>
> A quick patch to tslib to link those modules against libts is below.
> A little dirty linking against the static libs, but it works!
>
in fact, the patch you sent on the list was integrated into tslib in
november 2008 :
http://svn.berlios.de/viewcvs/tslib/trunk/tslib/plugins/Makefile.am?r1=51&r2=56
Please find attached a patch to add this patch to the tslib's recipe.
Best regards
Eric
[-- Attachment #2: tslib.patch --]
[-- Type: text/x-patch, Size: 1893 bytes --]
diff --git a/recipes/tslib/tslib/tslib-pluginsld.patch b/recipes/tslib/tslib/tslib-pluginsld.patch
new file mode 100644
index 0000000..37ef808
--- /dev/null
+++ b/recipes/tslib/tslib/tslib-pluginsld.patch
@@ -0,0 +1,36 @@
+ plugins/Makefile.am | 5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/plugins/Makefile.am b/plugins/Makefile.am
+index 3b902c2..4c4ef8b 100644
+--- a/plugins/Makefile.am
++++ b/plugins/Makefile.am
+@@ -114,15 +114,19 @@ pluginexec_LTLIBRARIES = \
+
+ variance_la_SOURCES = variance.c
+ variance_la_LDFLAGS = -module $(LTVSN)
++variance_la_LIBADD = $(top_builddir)/src/libts.la
+
+ dejitter_la_SOURCES = dejitter.c
+ dejitter_la_LDFLAGS = -module $(LTVSN)
++dejitter_la_LIBADD = $(top_builddir)/src/libts.la
+
+ linear_la_SOURCES = linear.c
+ linear_la_LDFLAGS = -module $(LTVSN)
++linear_la_LIBADD = $(top_builddir)/src/libts.la
+
+ pthres_la_SOURCES = pthres.c
+ pthres_la_LDFLAGS = -module $(LTVSN)
++pthres_la_LIBADD = $(top_builddir)/src/libts.la
+
+ # hw access
+ corgi_la_SOURCES = corgi-raw.c
+@@ -148,6 +152,7 @@ tatung_la_LDFLAGS = -module $(LTVSN)
+
+ input_la_SOURCES = input-raw.c
+ input_la_LDFLAGS = -module $(LTVSN)
++input_la_LIBADD = $(top_builddir)/src/libts.la
+
+ linear_h2200_la_SOURCES = linear-h2200.c
+ linear_h2200_la_LDFLAGS = -module $(LTVSN)
+
diff --git a/recipes/tslib/tslib_1.0.bb b/recipes/tslib/tslib_1.0.bb
index 1929ee0..bbd4793 100644
--- a/recipes/tslib/tslib_1.0.bb
+++ b/recipes/tslib/tslib_1.0.bb
@@ -1,6 +1,7 @@
SRC_URI = "http://download.berlios.de/tslib/${BP}.tar.bz2 \
file://fix_version.patch;patch=1 \
- file://tslib-nopressure.patch;patch=1"
-PR = "${INC_PR}.2"
+ file://tslib-nopressure.patch;patch=1 \
+ file://tslib-pluginsld.patch;patch=1"
+PR = "${INC_PR}.3"
include tslib.inc
next prev parent reply other threads:[~2009-09-24 19:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-06 12:31 qt4-embedded & tslib Eric Bénard
2009-09-06 15:03 ` Holger Hans Peter Freyther
2009-09-06 17:16 ` Eric Bénard
2009-09-06 22:22 ` Matthew Dombroski
2009-09-09 6:49 ` Eric Bénard
2009-09-09 22:02 ` Matthew Dombroski
2009-09-10 2:12 ` Holger Hans Peter Freyther
2009-09-10 3:19 ` Matthew Dombroski
2009-09-10 6:28 ` Eric Bénard
2009-09-24 19:02 ` Eric Bénard [this message]
2009-09-25 11:29 ` [PATCH] " Holger Hans Peter Freyther
2009-09-25 12:06 ` Eric Bénard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ABBC232.7010901@eukrea.com \
--to=eric@eukrea.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox