This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3517 Qt

Other Parts Discussed in Thread: AM3517

hello,

Now I'm buildding Qt on the AM3517 experimenter kit. I have copied  the /lib to the target filesystem . when I run the demo the computer monitor ,the moust can't work.

when I configured the qt-embedded-opensource-4.5.3  with

 ./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 4,8,16,32 -no-qt3support -prefix ${HOME}/work/qt/target -fast -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -optimized-qmake -no-nis -no-separate-debug-info -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -qt-kbd-usb -no-kbd-qvfb -no-mouse-qvfb -qt-mouse-linuxtp -qt-mouse-pc

Because I don't have the touch screen ,I don't configure with  -qt-mouse-tslib.

On the AM3517 ,I add

export QWS_MOUSE_PROTO=TSLIB:/dev/input/event1         and
export QWS_MOUSE_PROTO="Pc:/dev/input/event1"

but the mouse still no reaction.

when I modify   export QWS_MOUSE_PROTO="LinuxTp:/dev/input/event1"  .the mouse only can exist a moment ,when I move it ,it will no longer exist.

 Then  I build it accross to  the http://processors.wiki.ti.com/index.php/Building_Qt , when I run make ,it makes many mistakes as follows:

qtconcurrentiteratekernel.cpp:(.text+0x44): undefined reference to `clock_gettime'
.obj/release-shared-emb-arm/qtconcurrentiteratekernel.o: In function `QtConcurrent::BlockSizeManager::timeBeforeUser()':
qtconcurrentiteratekernel.cpp:(.text+0x464): undefined reference to `clock_gettime'
.obj/release-shared-emb-arm/qtconcurrentiteratekernel.o: In function `QtConcurrent::BlockSizeManager::timeAfterUser()':
qtconcurrentiteratekernel.cpp:(.text+0x624): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCore.so.4.6.2] Error 1
make[1]: Leaving directory `/home/zt/install/qt-everywhere-opensource-src-4.6.2/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2

I don't konw how to do next? Hope you can help me!

Thanks!

  • I haven't worked with Qt in a while, but what I used to do was build my Linux kernel with "Mouse interface" support. This gives you a /dev/input/mice device that is easier to work with in Qt. Then your export becomes

    export QWS_MOUSE_PROTO="Auto:/dev/input/mice"

    And the USB mouse should work.

    Steve K.

  • Keciy,

       This page explains how to configure the Matrix application to use mouse input instead of the touchscreen.  Matrix is a Qt app that uses Qt's ability to map touchscreen input to look like mouse input to the app.  So, I think this will be helpful with your app as well.

    http://processors.wiki.ti.com/index.php/How_to_use_a_Mouse_instead_of_the_Touchscreen_with_Matrix

    Regards, Clay