2013年9月18日星期三

[Android] qt4.7.0 transplantation : Touch screen problem

I QT4.7.0 transplanted to the development board (MINI2440), run qt demo program , the touch screen can move the mouse , but can not point down , no response.
Description: tslib separate test procedure is no problem . And when cross-compiling qt tslib also joined the libraries and header files , -I/usr/local/tslib/include -L/usr/local/tslib/lib. Internet was the following view:
NOTE: By the way , in order to use qte tslib, in addition qte when compiled with - qt-mouse-tslib parameters , but also adding the environment variable as follows
export QWS_MOUSE_PROTO = Tslib :/ dev/event0
from : http://cgy136652.blog.163.com/blog/static/36168728200921494724567/

we look at how it was.

my qt configuration parameters:
. / configure \
-prefix / opt/qt-arm-4.7.0 \
-opensource \
-confirm-license \
-release-shared \
-embedded arm \
-xplatform qws / linux-arm-g + + \
-depths 16,18,24 \
-fast \
-optimized-qmake \
-pch \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian-host-little-endian \
-no-qt3support \
-no-libtiff-no-libmng \
-no-mmx-no-sse-no-sse2 \
-no-3dnow \
-no-qvfb \
-no-nis \
-no-cups \
-no-glib \
-no-xcursor-no-xfixes-no-xrandr-no-xrender \
-no-separate-debug-info \
-nomake tools-nomake docs \
-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib

Developer Edition environment variables:
export QPEDIR = / opt/qt-arm-4.7.0 ; ;
export QTDIR = / opt/qt-arm-4.7.0 ; ;
export TSLIB_ROOT = / usr / local / tslib ; ;
export PATH = $ QTDIR / bin: $ PATH
export TSLIB_CONSOLEDEVICE = none
export TSLIB_FBDEVICE = / dev/fb0 ; ;
export TSLIB_TSDEVICE = / dev/event0 ; ;
export TSLIB_PLUGINDIR = $ TSLIB_ROOT / lib / ts ;
export TSLIB_CONFFILE = $ TSLIB_ROOT / etc / ts.conf ;
export TSLIB_CALIBFILE = / etc / pointercal ;
export POINTERCAL_FILE = / etc / pointercal ;
export QWS_MOUSE_PROTO = Tslib :/ dev/event0 ;
export LD_LIBRARY_PATH = $ TSLIB_ROOT / lib: $ QTDIR / lib
------ Solution ---------------------- ----------------------
this question almost every day someone asked ...
------ Solution ------ --------------------------------------
no standard answer , or do not call embedded it.

For example, I wrote in my blog to see a foreigner "How to bind ti sitara sdk to your Qt Eommercial Edition " in the Matrix because of TI's program requires DBUS so I need qt-dbus, and your system does not necessarily need .

only thing worth mentioning is -qt-xxx-yyy with -plugin-xxx-yyy requires only one on the line, as I see TI's a " veteran " is written "-qt-mouse-tslib -plugin-mouse-tslib " laughed my spit .
------ Solution ---------------------------------------- ----
run about ts_calibrate a look at QT prior to clicking can not work
------ Solution ----------------- ---------------------------
open the parameter -qt-mouse-linuxinput try
------ Solution --------------------------------------------


you inside the method according to my blog about compiling tslib try it
------ eference ----------------------- ----------------

have the answer? you know?
------ eference ------------------------------------ ---
Oh, I have to slowly troubleshooting a
------ eference ------------------------- --------------

can. tslib own programs can , on qt not, you can move the mouse , but clicking did not respond.
------ eference --------------------------------------- < br>

hear about , Oh , I used tslib1.4 cross-compiled library file generated 1.libts-0.0.so.0 2.libts.so
3.libts-0.0.so.0.1.0 4.libts.la on these four . And a friendly arm to provide an even more library files libts-0.0.so.0.1.1, specify the path to the tslib friendly with the normal operation of qt program , or the friendly library files are copied over, then path change overnight also, separate copy libts-0.0.so.0.1.1 this is not OK. Initially identified as tslib library to do their own problems, keep looking . . . Oh


------ eference ------------------------------------ ---



problem has been solved , thanks to attention : ( Canjian be snow ) , ( qian niu )
Reason: My original tslib1.4 have problems, do not remember from where to engage , from top to bottom of a CSDN , tested : Generating a libts-0.0.so.0.1.1 this library file , qt to can support touchscreen obediently took me two days :) time .
------ eference --------------------------------------- < br>
  This reply was moderator deleted at 2011-04-06 15:11:48

------ eference ------------------------------------ ---
your question , potentially magnified by you . Problems arise , you have a problem derived from the copy, ha ha ha.
------ eference --------------------------------------- < br> Yes http://apps.hi.baidu.com/share/detail/22427848 this article guaranteed to transplant successfully configured not to use it to copy entire oh
------ eference ---------------------------------------
now I also met the same problem , tslib1.4 cross-compiled without libts-0.0.so.0.1.1
------ eference ---------------- -----------------------
upstairs friends to help solve my qt program can run, but run separately library routines qt procedures and their own touch-screen can not be used (cat / dev/input/event0 | hexdump output when tested , the pointer on the screen , but is unable to move ) , the problem how to solve it

没有评论:

发表评论