I just wanted to make a small correction to my last post. It appears when I
specify --with-inputdrivers=tslib and then rebuild and reload my file system
directfb does not utilize any input drivers (typically these appear after
the 'VT Switcher' line):
=======================| DirectFB 1.1.0 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2008-06-04 20:06)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1358)...
(!) Direct/Modules: Could not open module directory
`/usr/lib/directfb-1.1-0/gfxdrivers'!
--> No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Switched to 480x272 (480x272) at 16 bit RGB16 (wanted
RGB16).
...
When I touch the screen to generate input, no events occur. If I try running
ts_calibrate/ts_test they work fine. Somehow I just need directfb to use
tslib.
Are there any steps I am missing??? Anything else I can try???
>From what I understand, getting directfb running with tslib should not
typically be such an arduous process.
Thank you very much for any help.
______________________________
cdaviduik wrote:
>
> I have exported all of the TSLIB variables. Also, touchscreen0 specified
> in TSLIB_TSDEVICE links to event0.
>
> I am using bitbake with the following recipe:
> ______________________________
> require gumstix-minimal-image.bb
>
> IMAGE_INSTALL += " \
> cron \
> ntp \
> ntpdate \
> boa \
> motd \
> www-content \
> mtd-utils \
> mgetty \
> picocom \
> ppp \
> logrotate \
> openssh \
> openssh-sftp-server \
> bash \
> inetutils \
> net-tools \
> net-snmp-server \
> net-snmp-mibs \
> net-snmp-libs \
> sqlite3 \
> libsqlite-dev \
> openssl \
> portmap \
> procps \
> grep \
> directfb \
> directfb-examples \
> resched \"
> ______________________________
>
> and within my directfb_1.1.0.bb recipe file:
> ______________________________
> DESCRIPTION = "DirectFB is a thin library that provides developers \
> with hardware graphics acceleration, input device handling and \
> abstraction, an integrated windowing system with support for \
> translucent windows and multiple display layers on top of the \
> Linux framebuffer device."
> SECTION = "libs"
> LICENSE = "LGPL"
> HOMEPAGE = "http://directfb.org"
> DEPENDS = "jpeg libpng freetype zlib tslib"
> PR = "r2"
> RV = "1.1-0"
>
> SRC_URI = " \
> http://www.directfb.org/download/DirectFB/DirectFB-${PV}.tar.gz \
> file://fix-pkgconfig-cflags.patch;patch=1 \
> file://fix-font-missing-char.patch;patch=1 \
> file://getpagesize.patch;patch=1 \
> file://fix-includes.patch;patch=1 \
> file://mkdfiff.patch;patch=1 \
> "
>
> S = "${WORKDIR}/DirectFB-${PV}"
>
> LDFLAGS_append =" -lts -lm"
>
> inherit autotools pkgconfig
>
> EXTRA_OECONF = " \
> --with-gfxdrivers=none \
> --with-inputdrivers=tslib \
> --enable-libmpeg3=no \
> --enable-freetype=yes \
> --enable-sdl=no \
> --enable-vnc=no \
> --disable-x11 \
> TSLIB_CFLAGS=\"-I${INSTALL_PATH}/include\" \
> TSLIB_LIBS=\"${INSTALL_PATH}/lib\" \
> "
>
> do_stage() {
> autotools_stage_all
> }
>
> do_install() {
> oe_runmake 'DESTDIR=${D}' install
> }
>
> PACKAGES_DYNAMIC = "directfb-inputdrivers-*"
>
> #python populate_packages_prepend () {
> # import os.path
> # inputdrivers_libdir =
> bb.data.expand('${libdir}/directfb-${RV}/inputdrivers', d)
> # do_split_packages(d, inputdrivers_libdir, '*.so$',
> 'directfb-inputdrivers-%s', 'Directfb plugin for %s')
> #}
> FILES_directfb-dbg_append = " ${libdir}/directfb-${RV}/*/*/.debug/*.so \
> ${libdir}/directfb-${RV}/*/.debug/*.so \
> "
>
> FILES_directfb-dev_append = " ${libdir}/directfb-${RV}/systems/*.la \
> ${libdir}/directfb-${RV}/inputdrivers/*.la \
> ${libdir}/directfb-${RV}/interfaces/*/*.la \
> ${libdir}/directfb-${RV}/wm/*.la \
> "
>
>
> FILES_directfb_append = " ${libdir}/directfb-${RV}/systems/*.so \
> # ${libdir}/directfb-${RV}/inputdrivers/*.so \
> # ${libdir}/directfb-${RV}/interfaces/*/*.so \
> ${libdir}/directfb-${RV}/wm/*.so \
> ${datadir}/directfb-1.1.0 \
> "
> ______________________________
>
> Thanks
>
>
> Denis Oliver Kropp wrote:
>>
>> cdaviduik wrote:
>>> It is clear that tslib is not being used despite having configured
>>> directfb
>>> with tslib input drivers. I am unable to figure out how to resolve this
>>> problem as well as how to procede.
>>>
>>> Any help would be very much appreciated.
>>
>> Did you export TSLIB_TSDEVICE?
>>
>> --
>> Best regards,
>> Denis Oliver Kropp
>>
>> .------------------------------------------.
>> | DirectFB - Hardware accelerated graphics |
>> | http://www.directfb.org/ |
>> "------------------------------------------"
>>
>> _______________________________________________
>> directfb-users mailing list
>> [email protected]
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Specifying-tslib-for-DirectFB-touchscreen-input-driver-tp17327192p17656816.html
Sent from the DirectFB Users mailing list archive at Nabble.com.
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users