List Info

Thread: Using tslib with Directfb




Using tslib with Directfb
user name
2007-03-19 02:34:58
Dear all:
      ; I am trying to use tslib for my touch-panel in Directfb, but I got the
following error:
 
*********************************************
Couldnt load module pthres
(!) DirectFB/tslib: Error configuring `/dev/input/event1`!
**********************************************
It is not just the pthres module, but also all of the modules
after the raw module (e.g. variance, dejitter, linear, etc.)
However, my ts test programs and tinyX server don't have
any problem loading the tslib library.
 
I traced the code and found that when tslib is called by Directfb,
it has problem doing "dlopen" on the pthres module. Interestingly,
tslib doesn't have this problem when it was called by TinyX or my
test program.
 
Just wondering if anyone has run into the same issue.
 
Here is my Directfb config:
./configure --prefix=/opt/dfb --enable-zlib --enable-fbdev --with-tests
--with-gfxdrivers=none --with-inputdrivers=tslib,keyboard --enable-debug
 
My tslib is configured to read linux raw input (/dev/input/event1). And
this is my tslib config:
---------------------------------
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
---------------------------------
tslib is working for other programs; so I assume it is ok.
 
Greatly appreciate it if someone can help me with this.
 
Thank you,
Alan
Re: Using tslib with Directfb
country flaguser name
Finland
2007-03-19 03:07:02
On Mon, Mar 19, 2007 at 03:34:58PM +0800, Alan Chuang
wrote:
> Dear all:
>       I am trying to use tslib for my touch-panel in
Directfb, but I got
> the
> following error:
> 
> *********************************************
> Couldnt load module pthres
> (!) DirectFB/tslib: Error configuring
`/dev/input/event1`!
> **********************************************
> It is not just the pthres module, but also all of the
modules
> after the raw module (e.g. variance, dejitter, linear,
etc.)
> However, my ts test programs and tinyX server don't
have
> any problem loading the tslib library.
> 
> I traced the code and found that when tslib is called
by Directfb,
> it has problem doing "dlopen" on the pthres
module. Interestingly,
> tslib doesn't have this problem when it was called by
TinyX or my
> test program.
> 
> Just wondering if anyone has run into the same issue.

Yes. Fix is here:
https://lists.berlios.de/pipermail/tsl
ib-general/2007-February/000002.html

-- 
Ville Syrjälä
syrjalasci.fi
http://www.sci.fi/~syrjal
a/

_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: Using tslib with Directfb
user name
2007-03-19 03:59:24
It works!!! Thank you so much. That really saved my day ... well, 3 days... to be exact.
 
Best regards,
Alan 

 
On 3/19/07, Ville Syrjälä < syrjalasci.fi">syrjalasci.fi>; wrote:
On Mon, Mar 19, 2007 at 03:34:58PM +0800, Alan Chuang wrote:
>; Dear all:
>&nbsp;   ; &nbsp; I am trying to use tslib for my touch-panel in Directfb, but I got
> the
> following error:
>;
> *********************************************
> Couldnt load module pthres
>; (!) DirectFB/tslib: Error configuring `/dev/input/event1`!
> **********************************************
> It is not just the pthres module, but also all of the modules
&gt; after the raw module (e.g. variance, dejitter, linear, etc.)
> However, my ts test programs and tinyX server don't have
> any problem loading the tslib library.
>
> I traced the code and found that when tslib is called by Directfb,
> it has problem doing "dlopen" on the pthres module. Interestingly,
> tslib doesn't have this problem when it was called by TinyX or my
> test program.
&gt;
> Just wondering if anyone has run into the same issue.

Yes. Fix is here:
https://lists.berlios.de/pipermail/tslib-general/2007-February/000002.html

--
Ville Syrjälä
syrjalasci.fi">syrjalasci.fi
http://www.sci.fi/~syrjala/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )