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. Location of TSLIB(libts.so) and QT PLUGIN(libqtslibplugin.so)

Location of TSLIB(libts.so) and QT PLUGIN(libqtslibplugin.so)

Scheduled Pinned Locked Moved Mobile and Embedded
25 Posts 3 Posters 9.2k Views
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Did you configure tslib on your target ?

    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
    • S Offline
      S Offline
      Sidii
      wrote on last edited by
      #5

      yes i generated both QT libraries and TSLIB libraries for target: power pc.
      Also when i do

      @ file libts.so@

      I get following:

      @libts.so: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked, with unknown capability 0x41000000 = 0x13676e75, with unknown capability 0x10000 = 0xb0401, not stripped
      @

      so both QT libraries and TSLIB are in same format.

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

        I mean, properly setup TSLIB, initialized it ?

        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
        • S Offline
          S Offline
          Sidii
          wrote on last edited by
          #7

          I checked that TSLIB has some inbuilt tools that also got generated while compiling the src code, like ts_test, ts_calibrate.

          i am not getting what you mean by "initialized it", do you mean to test the functionality using these tools or there is some another way of initializing it. Kindly explain how to proceed.

          I also found that there is touch screen connected to the embedded board but there is no input folder/node inside the device folder.

          Generally all the touchscreen/input related devices are listed inside:
          @/dev/input/something_here@

          But there is no input node in my system.
          Is there any other way to interact with the LCD touch screen?

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

            Not knowing anything about your LCD screen, I can't tell how it should show up or whether it's connected correctly on your system.

            The tslib tools are there to help you set the various environment variable needed by the library to work properly

            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
            • S Offline
              S Offline
              Sidii
              wrote on last edited by
              #9

              Dear SGaist, thanks for your reply. It seems it is a serial device. Is it possible to get the x,y coordinates from the screen and then map it to the QT Screen so that i can know what button is clicked? I have done serial programming in QT for GPS devices, but i have no idea of mapping to the Framebuffer to know what widget is getting touch.

              Just give me some pointers so that i can think in that direction.
              Thanks :)

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

                Didn't you succeed configuring tslib ?

                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
                • S Offline
                  S Offline
                  Sidii
                  wrote on last edited by
                  #11

                  no because there is no dedicated driver, it is a serial device :(

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

                    How does the system see it ? /dev/ttyS0 or something like that ?

                    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
                    • S Offline
                      S Offline
                      Sidii
                      wrote on last edited by
                      #13

                      yes you are correct, also i found that when i do
                      @cat ttyS1@

                      then some junk characters are printed on putty terminal whenever i touch the lcd.
                      But i am not able to see x,y coordinates. I think some baud rate mismatch is there.

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

                        hexdump will give you a cleaner output.

                        Well, AFAIK, setting TSLIB_TSDEVICE to /dev/ttyS1 should get you started, no ?

                        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
                        • S Offline
                          S Offline
                          Sidii
                          wrote on last edited by
                          #15

                          I tried setting the same:

                          @
                          export QT_QPA_PLATFORM=linuxfb
                          export QT_PLUGIN_PATH=/home/Sid/plugins/generic
                          export QT_QPA_GENERIC_PLUGINS=tslib
                          export QT_QPA_FONTDIR=/home/Sid/fonts
                          export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/Sid
                          export TSLIB_FBDEVICE=/dev/fb0
                          export TSLIB_TSDEVICE=/dev/ttyS1 -------->>SEE THIS
                          export TSLIB_PLUGINDIR=/home/Sid/tslib_plugins
                          export TSLIB_CONFFILE=/home/Sid/ts.conf

                          @

                          But when i run ./ts_test, i get no output :(
                          The program keeps running without any output unit i give Ctrl+C

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

                            Did you run ts_calibrate first ?

                            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
                            • S Offline
                              S Offline
                              Sidii
                              wrote on last edited by
                              #17

                              Yes, no output from ts_calibrate also..

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                Sidii
                                wrote on last edited by
                                #18

                                and if i do

                                @./ts_print@

                                i get following output:

                                selected device is not a touchscreen I understand

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

                                  Which module are you using ?

                                  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
                                  • S Offline
                                    S Offline
                                    Sidii
                                    wrote on last edited by
                                    #20

                                    Sorry i did not get you. Module??

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

                                      Sorry I meant tslib plugin

                                      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
                                      • S Offline
                                        S Offline
                                        Sidii
                                        wrote on last edited by
                                        #22

                                        I downloaded TSLIB (tslib-1.0) from sourceforgenet. And then crosscompiled it for powerpc. and then modified qmake.conf to include soure and libs. Also test lib test was successful.

                                        I copied libqtslibplugin.so to plugins/generic folder.

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

                                          Not the Qt tslib plugin, the plugin from tslib itself

                                          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