mini2440 and tslib

Aldan4uk
Hello,

I have an mini2440 board with Qtopia 2.2.0 128M+ 2010-01-08 image
installed. Id' like to compile tslib for this board.

/autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" > arm-linux.autogen
export CC=/usr/local/arm/4.3.2/bin/arm-linux-gcc
export CXX=/usr/local/arm/4.3.2/bin/arm-linux-g++
export CONFIG_SITE=arm-linux.autogen
./configure --build=i386-linux --host=arm-linux --target=arm-linux
--prefix=$PWD/build

make
make install

there is no any errors during the build process. After copying files to
mini2440 board I execute following script

export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export QWS_MOUSE_PROTO=tslib:/dev/input/event0

and modify /etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

when I try to run any tslib app like ts_calibrate, I have "segmentation
fault" error.

davef
export CFLAGS=-march=armv4t -mtune=arm920t   ?

What does readelf -A ts_calibrate say?

Aldan4uk
davef, thanks a lot for you answer.
I try to use other board with newer Qtopia image and tslib is working now.
But the problem is that every tap on touchscreen is go not only to
application, but also into Qtopia menu or application. For example, I run
ts_calibrate. When I tap crosshair in left upper corner, ts_calibrate is
handling my tap and crosshair is moving to the right. But also a background
application appears at left corner of screen, at place of crosshair, and
this application handling this tap too!

davef
This topic has come up before on this forum. Try search, but can't suggest
a keyword for you.  Something to do with trying to run a Qt 4.x application
while Qt 2.2.0 was also installed. 

Good luck