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. EGalax touchscreen and Qt5
Forum Updated to NodeBB v4.3 + New Features

EGalax touchscreen and Qt5

Scheduled Pinned Locked Moved Mobile and Embedded
33 Posts 6 Posters 24.5k 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #15

    Hi Tannyveer,
    If you have already compiled tslib library for RPI then there must be some tools generated along with the compilation. Check "tests" folder. If those tools like ts_test, ts_calibrate works fine then that means your tslib is working fine.

    If you compiled TSLIB in host system then transfer the required tools to RPI and then try running them.

    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tannyveer
      wrote on last edited by
      #16

      when i run
      ./ts_test and ./ts_calibration i got the following error
      libts-1.0.so.0: cannot open shared object file: No such file or directory
      in my RPI

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

        Ok then copy these libraries into your RPI and then add the path to environment variable LD_LIBRARY_PATH.

        If you generated the tslib in your host pc, then they get generated inside /usr/local.

        Copy these .so files to your RPI and add the path to LD_LIBRARY_PATH.

        let me know what happens next.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tannyveer
          wrote on last edited by
          #18

          i add the path and i got the illegal operation error when i run ./ts_test

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

            Have you set the following environment variables:

            @
            export TSLIB_FBDEVICE=/dev/fb0
            export TSLIB_TSDEVICE=/dev/ttyS1
            export TSLIB_PLUGINDIR=/home/Sid/tslib_plugins
            export TSLIB_CONFFILE=/home/Sid/ts.conf
            @

            also try running ts_calibrate. Do you get same error?

            Also some more tools are present like ts_print, ts_print_raw.

            Try running them as well..

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Tannyveer
              wrote on last edited by
              #20

              hi sid
              so sadly i got the same error when i test the ts-test ts_calibrate ts_print ts_print-raw tools

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

                Dear Tannyveer,

                I think may be its is related to some permission issue. I am not sure.
                Try changing the permission of all the related files.

                Also check with ldd command whether all the libraries needed are found by the required binaries or not.
                i have not come across any such error :(

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  Tannyveer
                  wrote on last edited by
                  #22

                  Dear Sid
                  sorry for the late post i am out of station from three days, right now iam in my workbench still i got the same errors i want to compile the tslib once again
                  now my question is iam compiling tslib on my host system contains ubuntu 14.04 32-bit version. Is any problem encounter with this desktop version.
                  another queston after install tslib in my host system i transfered the install files using gftp.this may be any troubled for my tslib.

                  please answers these questions so that i vl try again to compile the tslib. give me the procedure from first steps to compile the tslib

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

                    So you are cross compiling. I mean to say you are compiling the source code in Ubuntu and then deploying the binaries in the RPI?

                    If this is the case then you are doing cross compilation. Is it true?

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      Tannyveer
                      wrote on last edited by
                      #24

                      yep sid

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        Tannyveer
                        wrote on last edited by
                        #25

                        Dear Sid,
                        Is there any method along with this. please post me Sid

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

                          Do following steps:

                          @
                          export ac_cv_func_malloc_0_nonnull=yes
                          export CC=powerpc-wrs-linux-gnu-ppc_603e-glibc_std-gcc
                          export CXX=powerpc-wrs-linux-gnu-ppc_603e-glibc_std-g++
                          ./autogen.sh
                          ./configure --host=powerpc-603e-linux --target=powerpc --prefix=/usr/local
                          make
                          make install
                          @

                          Make necessary changes in line number 2,3,5 as per your RPI tool chain. If you get a problem about an undefined reference to rpl_malloc, then only you need to do line number 1.

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            Tannyveer
                            wrote on last edited by
                            #27

                            dear sid
                            i installed the tslib on my rpi when i run ts_test and ts_calibrate
                            i got the following

                            couldnot load loaded pthres
                            No raw modules
                            ts_config :Sucess

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

                              Copy the pthres.so from your host pc to target pc(RPI)
                              In host pc it is located at : tslib-1.0/plugins/.libs

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                Tannyveer
                                wrote on last edited by
                                #29

                                Hai sid,
                                I got the same errors even though i coped the pthe.so file on my rpi lib . i loss my patinece and i stoped my work. i think egalax cannot be work for rpi with qt5 application.
                                Thank you very much for your support.

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

                                  Dear Tannyveer,

                                  Do not loose hope.

                                  Have you tried setting TSLIB related environment variables?? If not set these:

                                  @
                                  export TSLIB_FBDEVICE=/dev/fb0
                                  export TSLIB_TSDEVICE=/dev/ttyS1
                                  export TSLIB_PLUGINDIR=/home/Sid/tslib_plugins
                                  export TSLIB_CONFFILE=/home/Sid/ts.conf
                                  @

                                  Modify the plugin dir path as per your system.

                                  1 Reply Last reply
                                  0
                                  • T Offline
                                    T Offline
                                    Tannyveer
                                    wrote on last edited by
                                    #31

                                    Hi Sid,
                                    I set these environment in /root/.bashrc.
                                    but still i got the same problem.

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

                                      Do one thing to check whether these environment variables are getting set properly or not. check with echo command:

                                      @echo $TSLIB_PLUGINDIR@

                                      If this gives correct value then its fine, or try setting the same in .profile file.

                                      J 1 Reply Last reply
                                      0
                                      • S Sidii

                                        Do one thing to check whether these environment variables are getting set properly or not. check with echo command:

                                        @echo $TSLIB_PLUGINDIR@

                                        If this gives correct value then its fine, or try setting the same in .profile file.

                                        J Offline
                                        J Offline
                                        JiujiuTong
                                        wrote on last edited by JiujiuTong
                                        #33

                                        @Sidii
                                        Hi sidii, i meet a similar problem.
                                        when my application startup, i click with finger on the main window , there are event response, popup another widget and a whiter cursor on the left top position.
                                        then i try to click(with finger) the widget there is no response. if i move the white cursor to the widget, then click everything is ok.
                                        it seems that click on the widget invoke the event on main window. as there is still another black cursor underground. what may be the problem? thank you!
                                        ENV: QT5.7.1 +raspberry pi3 , cross compiled ,host : ubuntu 16.04
                                        Tslib installed on rpi3 directory and sync it to the host.

                                        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