Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] why the Qt program is used libts-0.0.so.0 in mini2440?

[solved] why the Qt program is used libts-0.0.so.0 in mini2440?

Scheduled Pinned Locked Moved Installation and Deployment
libts-0.0.so.0mini2440
26 Posts 3 Posters 13.8k 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.
  • M Offline
    M Offline
    morkia
    wrote on last edited by morkia
    #7

    If you are running a Linux on your PC or Laptop then you are most certainly using the X window manager. Just search it in your favorite search engine like Google. Most modern arm processors are capable of running X window manager like Tiny X. How did you build the Linux for your board?

    in your dmesg output the line input: s3c2410 TouchScreen as /devices/virtual/input/input0 shows that you have the driver loaded for your kernel. If it works outside the Qt then there's something wrong within your code just post a snippet of your code so I can see where the problem might be.

    The parts that you have highlighted are related to your MTD device. Don't worry about them those are managed by your hardware automatically. If you swith off your board without properly shutting it down first, that could happen (an unsuccessful write damaged a block in your memory like a bad sector in your hard drive). Also the YAFFS2 file system scans for those blocks and then reuse them during it's garbage collection.

    Also, You have marked your issue as solved. Is it really solved or you still have problems with it?

    1 Reply Last reply
    0
    • MhM93M Offline
      MhM93M Offline
      MhM93
      wrote on last edited by
      #8

      Hi and thanks for reply @morkia
      thanks for your describe. :)

      Also, You have marked your issue as solved. Is it really solved or you still have problems with it?

      my main problem not solved. but the question in this topic is solved.

      If it works outside the Qt then there's something wrong within your code just post a snippet of your code so I can see where the problem might be

      this is my program that i uploaded. it is a simple hello world with Qt 4.6.3:http://project-free-upload.com/sg5yrgxi2ixs

      H.Ghassami

      1 Reply Last reply
      0
      • M Offline
        M Offline
        morkia
        wrote on last edited by morkia
        #9

        your program consists of a main window on which you display heloo within a QLabel there's nothing to click on! What do you expect from it?! I suggest you at least put a QButton or something that reacts to click events.

        1 Reply Last reply
        0
        • MhM93M Offline
          MhM93M Offline
          MhM93
          wrote on last edited by
          #10

          at first my program has a click when it clicked show a message to say hello but the touch not worked. i think maybe my program has error. so i make a simple program to just show a simple label. but when i run it . the mouse is place the center screen and dose not change the location when i touch the display.

          H.Ghassami

          1 Reply Last reply
          0
          • M Offline
            M Offline
            morkia
            wrote on last edited by
            #11

            Place a button or something that accepts a click and then test your program. Don't pay attention to the cursor you see. If you don't have a window manager (which is very likely considering you are using an ancient arm device) then your cursor might not move around because there's no program to handle that for you. Remember everything is a software. It doesn't come by itself. So if you place a button or any widget that reacts to click events in your software, Does that work?

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

              @morkia Qt 4 for Embedded Linux provides it's own window manager, nothing to do with the age of the processor.

              @MhM93 what parameters are you giving to your application when you launch 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
              • M Offline
                M Offline
                morkia
                wrote on last edited by
                #13

                @SGaist yes it does provided it's correctly compiled. Also the platform on which you run Qt applications matter too.

                1 Reply Last reply
                0
                • MhM93M Offline
                  MhM93M Offline
                  MhM93
                  wrote on last edited by
                  #14

                  Hi and thanks for reply @morkia @SGaist . (and Sorry cause I am so busy because changing my home and cant see this topic)
                  @morkia : I said that my first program is a window with a button. when i clicked the button show message. but nothing worked in my app (just display the window with button). I guessed maybe the ARM device does not support the QmessegeBox. so I changed my app to a simple hello word with a simple label. but the touch not worked. (that program with message box is worked on tiny6410)
                  @SGaist : I called my program like this:

                  cd /udisk/
                  ./prj3 -qws

                  but just display my app with no touch. my last Topic

                  H.Ghassami

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    morkia
                    wrote on last edited by
                    #15

                    I could help you better if you would tell me what kind of Linux you are using and how you installed it on your board. I might tell you how to build a Linux for your board here, But first I should know if it's done correctly. All I can sense from here is an incorrectly configured installation of Linux. Tell me if you are interested.

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

                      @morkia said:

                      If you don't have a window manager (which is very likely considering you are using an ancient arm device)

                      Again, this part has not much to do with the age of the device, Qt for Embedded Linux with the Qt Windowing System was already running on ARM devices more than 10 years ago.

                      Part of the problem is here is that just saying -qws doesn't tell Qt that you have a touch screen at hand. You need to tell it that you are using TSLib. It's described here

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

                        @SGaist Yes but in my personal experience It's better to use a window manager like tiny X. Also since Qt is usually compiled from source for such cases, it's difficult for new and inexperienced users to get it to work right i.e. supplying proper configurations etc.

                        This is the reason I'm continuously asking her to tell me how she has built the Linux for her device. If she uses X, then she won't have to worry about input device handling. It simply becomes transparent to her.

                        by that statement I meant the way Linux is usually built and deployed on devices like hers.

                        1 Reply Last reply
                        0
                        • MhM93M Offline
                          MhM93M Offline
                          MhM93
                          wrote on last edited by
                          #18

                          @morika : Hi and thanks. I really want to know how to enable touch and understand the ARM structure.

                          I could help you better if you would tell me what kind of Linux you are using

                          [root@FriendlyARM /]# uname -a
                          Linux FriendlyARM 2.6.32.2-FriendlyARM #16 Tue Dec 23 15:08:43 CST 2014 armv4tl unknown

                          how you installed it on your board

                          like the other website says : connect it with serial port and usb. in DNW set the port . press the key :
                          x
                          f
                          v->supervivi128
                          q
                          ->change the kernel size and root size and set param to mtdblock3
                          k->load zImage_T35(the screen type)
                          y->rootf about 85MB
                          b->boot the Linux.
                          the the Linux is installed.

                          @SGaist : really thanks.
                          by that topic link :
                          [root@FriendlyARM /]# ls -la /dev/input
                          drwxr-xr-x 2 root root 0 Jan 1 08:00 .
                          drwxr-xr-x 7 root root 0 Jan 1 08:00 ..
                          crw-rw---- 1 root root 13, 64 Jan 1 08:00 event0
                          crw-rw---- 1 root root 13, 63 Jan 1 08:00 mice

                          I changed them by the last code in that topic : chmod a+rw /dev/input/mouse0 ( i have mice instead of mouse0 so edit it)
                          [root@FriendlyARM /udisk]# ls -la /dev/input
                          drwxr-xr-x 2 root root 0 Jan 1 08:00 .
                          drwxr-xr-x 7 root root 0 Jan 1 08:00 ..
                          crw-rw-rw- 1 root root 13, 64 Jan 1 08:00 event0
                          crw-rw-rw- 1 root root 13, 63 Jan 1 08:00 mice

                          but no touch again. ( ts_calibrate worked but my application touch not work)

                          Part of the problem is here is that just saying -qws doesn't tell Qt that you have a touch screen at hand.

                          I think I don't understand it !!the device demo is worked with this parameter./fluidluncher -qws -> this is worker completely even touch work.

                          H.Ghassami

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

                            ARM is just a processor architecture, you can find yourself having the exact same problem on x86. What matters more is the distribution you use as well as the kernel.

                            Did you compile fluidlauncher yourself ?

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

                              @SGaist : Did you compile fluidlauncher yourself ? No . this demo is in device and worked. you mean my compiler is wrong? but i compile my project as the same as some sites guide.

                              H.Ghassami

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

                                No, not your compiler, just trying to narrow down the sources of your problem. Are you using a custom compiled Qt or the same provided on your board ?

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

                                  @SGaist : I used arm-linux-gcc4.4.3 and qt4.6.3. I downloaded from internet.
                                  In most sites i saw for tiny6410 at first install tslib( and also mini2440) but in tiny6410 pdf does not do that. I install everything exactly like pdf. and everything is worked ( without tslib installation ). and my app is worked perfectly over tiny6410 ( the touch is work too). I wanna to say is it possible my device (mini2440) have problem or another problem ? I am so confused. O.o

                                  H.Ghassami

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

                                    You should check for the differences between the two hardware and software wise

                                    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
                                    • M Offline
                                      M Offline
                                      morkia
                                      wrote on last edited by morkia
                                      #24

                                      @MhM93 I suggest you build yourself a Linux using buildroot. The pdf file supplied with the board might not be accurate and/or complete. Are you using the demo root file system image supplied with your board or you have compiled it yourself? It should be a rootfs.yaffs or something similar. Don't use the demo rootfs supplied. Compile it yourself. Check buildroot out. I suggest using the versions below 2013 and also select CodeSourcery tool chain because the GCC compiler didn't produce the correct binaries (probably due to some incorrect configurations either within buildroot make files or something else.). If you wanted a more detailed howto then let me know.

                                      1 Reply Last reply
                                      0
                                      • MhM93M Offline
                                        MhM93M Offline
                                        MhM93
                                        wrote on last edited by
                                        #25

                                        @SGaist : thanks. i should do that.
                                        @morkia : thanks. Yes. i like to know every thing about the embedded system and all you said. If you help me, become me so Glad. thanks ( this is my email : haniyeh.ghassami A T gmail D O T com)

                                        H.Ghassami

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          morkia
                                          wrote on last edited by
                                          #26

                                          for starters search "buildroot" in google. Go to their website or go here directly. pick a version you like but I recommend the ones below 2013 because the higher versions didn't work for me. Download and extract it then go in the directory in which you extracted the archive and type make menuconfig (it might complain about ncurses in that case install libncurses I installed it using this command: sudo apt-get install libncurses5). Choose the packages and configurations and then press Escape key untill you are prompted to save changes then say yes and simply do a make. Remember to choose proper toolchain and compiler before. If you have any further questions feel free to ask here.

                                          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