Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt with buildroot tslib problem
Forum Updated to NodeBB v4.3 + New Features

Qt with buildroot tslib problem

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dariush_abbasi
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dariush_abbasi
        wrote on last edited by
        #3

        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 ...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dariush_abbasi
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved