problems making qt aplications

david
hi im tring to make an application for my mini using qt for doing this i
have making this steps:

1-im using tslib-1.0 adn qt-everywhere-opensource-src-4.6.2 packages

2- this its how i could cross compile this tslib without mistakes:

/***********************************************/
export ac_cv_func_malloc_0_nonnull=yes
./configure --build=i386-linux --host=arm-linux --target=arm-linux  \
--disable-inoutapi --prefix=/usr/local/Qt/tslib

make
make install
/*********************************************/

3- i configure this files of the packages qt-every ....

File: mkspecs/qws/linux-arm-g++/qmake.conf

this its my file:

/*************************************************/

# qmake configuration for building with arm-linux-g++

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf

QMAKE_CC = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc -msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0

QMAKE_CXX = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++
-msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0

QMAKE_LINK = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++
-msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0

QMAKE_LINK_SHLIB = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++
-msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0


# modifications to linux.conf

QMAKE_AR = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ar cqs 

QMAKE_OBJCOPY = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-objcopy

QMAKE_STRIP = /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-strip


load(qt_config)

/******************************************************************/

file: mkspecs/common/g++.conf

QMAKE_CFLAGS_RELEASE    += -O0

/***************************************************************/



4. after i did this changes i compile qt-every ... with the following
command lines:


./configure -release -embedded arm -xplatform qws/linux-arm-g++ -prefix \
/usr/local/Qt -qt-mouse-tslib -L /usr/local/tslib/lib -I
/usr/local/tslib/include -little-endian -no-webkit \
-no-qt3support -no-cups -no-largefile -optimized-qmake \
-no-openssl -nomake tools

it compiles without mistakes.

/***************************************************************/

5.after this i copy some examples to my usb from examples folder (the
folder who was created when it compiled)

6. i copy the lib folder (the one who was made when i compile qt-every ...
and also libts-0.0.so.0)  to my usb

7. on my mini2440 console wrote this configuration:

export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/usr/input/ts
export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export LD_LIBRARY_PATH=/udisk/lib
export QTDIR=/usr/local/Qt
export QWS_MOUSE_PROTO=tslib:/usr/input/ts
export QWS_DISPLAY=LinuxFB:mmWidth=310:mmHeight=190


8. finally i wrote the command line:

./tetrix -qws

but appearsme this mistake:

ILLEGAL INSTRUTION

WHAT IM DOING WRONG??? HELPP THIS ITS MAKING ME CRAZY!!!

thanks!

Andreo
hey, what about to compile tslib with 

"-msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0"

or somethink like this?

i compiled with

 ./configure CC=arm-none-linux-gnueabi-gcc CFLAGS="-O0 -march=armv4
-mtune=arm920t -pipe" CXX="arm-none-linux-gnueabi-g++ -O0 -march=armv4
-mtune=arm920t -pipe" -host=arm-none-linux-gnueabi
-target=arm-none-linux-gnueabi -enable-static=no -enable-shared=yes -prefix
/usr/local/tslib