Qt with buildroot tslib problem



  • Hi everybody.
    I've enabled the Qt 4.8 in buildroot and also the "pc" and "tslib" drivers for "mouse drivers".
    The "cat /dev/input/event1" for both mouse and touchscreen works correctly.
    After using the following commands the "ts_calibrate" and "ts_test" also works.

    export TSLIB_TSDEVICE=/dev/input/event1

    export TSLIB_TSEVENTTYPE=INPUT

    export TSLIB_CONFFILE=/etc/ts.conf

    export TSLIB_CALIBFILE=/etc/pointercal

    The problem is only the "export QWS_MOUSE_PROTO="LinuxInput:/dev/input/event1" for only mouse works for the qt examples, and none of "
    export QWS_MOUSE_PROTO="Tslib:/dev/input/event1"
    and
    export QWS_MOUSE_PROTO="MouseMan:/dev/input/event1"
    works.
    So i can't use the "tslib" for the qt examples. Any suggestion?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you check the permissions on the file ? Do you have any error message ?



  • Thanks a lot.
    I added the required permission.
    No, without any errors!
    for mouse:
    @
    QWS_MOUSE_PROTO=“LinuxInput:/dev/input/event1”
    @
    works, but
    @
    QWS_MOUSE_PROTO=“MouseMan:/dev/input/event1”
    @
    does not work.
    for touch:
    @
    export QWS_MOUSE_PROTO=“Tslib:/dev/input/event1”
    @
    does not work either.
    One othe thing:
    Since there was an error while building the buildroot with qt 4.7 , i changed the qt version to 4.8.
    That error was : does not support thumb ...


  • Lifetime Qt Champion

    You can start your application with QT_DEBUG_PLUGINS=1 set to see if you get any message your a failiure.

    Do you mean that building 4.7 resulted in the thumb instruction set error ?



  • bq. Do you mean that building 4.7 resulted in the thumb instruction set error ?

    Yes.
    Would you please tell me how can i "QT_DEBUG_PLUGINS=1" in my application?
    Since i'm new to Qt, which document or manual or tutorial you suggest for learning Qt on embedded arm?


  • Lifetime Qt Champion

    That's an environment variable, you set it in the console you use to start your application or if you do it from Qt Creator, set it in the run part of the Project Panel


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.