working on a flash application interface, loaded by gnash-fb, on a LCD
panel of 800x480 in framebuffer mode, I have something strane with the
touchscreen :
after calibrating the TSLib with ts_calibrate, I have something good
with ts_test :
Have you tried flipping the touchscreen connection over?
A lot of touch screen connectors can take the flexible cable in both
orientations - It may put a twist in the cable, but may fix the X/Y
switching issue.
So I managed to modify the 2 patch files so they fit with gnash-0.8.5
source as I compile gnash-fb in OE.
Then I modified recipes/gnash/gnash-fb_0.8.5.bb to add tslib in the
dependencies.
During the compile of gnash-fb (bitbake):
- the depency to tslib compile tslib_1.0.bb as wanted
- the do_patch works great
- the do_compile fail after the compilation of fb.cpp when the linker
don't find functions such as ts_close() (specific functions of
tslib) : "undefined reference of ts_close()"
When looking at the linker command line in the log (tmp/work/armv7a-
angstrom-linux-gnueabi/gnash-fb-0.8.5-r6/temp/log.do_compile.2625)
link all needed libraries like tmp/staging/armv7a-angstrom-linux-
gnueabi/usr/lib/libXau.so and many other but not libts.so !!!
I tried many many times to add it, but cannot find the solution.
Does somebody know how to force the link of this library ?
It seems adding "tslib" to the DEPEND += "lib1 lib2" of the .bb file
is not enough, but I cannot find where to fix this issue.
I didn't managed to add TSLIB to gnash (linker problem see below), so
I modified the built in TS calibration in Gnash to use the 3 points
methode decribed above.
Here is the patch if somebody else need it (work fine for me) :
/*
- <UdoG>:
- This is a *very* simple method to translate raw touchscreen
coordinates to
- the screen coordinates. We simply to linear interpolation between
two points.
- Note this won't work well when the touchscreen is not perfectly
aligned to
- the screen (ie. slightly rotated). Standard touchscreen calibration
uses
- 5 calibration points (or even 25). If someone can give me the
formula, tell
- me! I'm too lazy right now to do the math myself...