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. Problem Qt-Embedded / PandaBoard
Forum Updated to NodeBB v4.3 + New Features

Problem Qt-Embedded / PandaBoard

Scheduled Pinned Locked Moved Mobile and Embedded
15 Posts 5 Posters 6.4k 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.
  • N Offline
    N Offline
    nadroj
    wrote on last edited by
    #1

    Hi everybody.

    I have some problems with qt-embedded. I try to execute the textedit demo in qt examples. I do it with my pandaboard and a linux OS. When I execute ./textedit , I have the message :
    bash : ./textedit : No such file or directory

    I compiled the Appli from my PC with qt-everywhere-opensource-src-4.8.3. I build qt-everywhere-opensource-src-4.8.3 with arm-linux-gnuaebi-gcc-4.6 and arm-linux-gnuaebi-g++-4.6.

    The configure command was : ./configure -embedded arm -xplatform qws/linux-arm-gnueabihf-g++/ -little-endian -qvfb -lrt -qt-gfx-linuxfb -qt-gfx-qvfb.

    I tried with others qt-embedded versions but I still got the same message « bash : ./textedit : No such file or directory ».

    What I did wrong ? Someone already had the problem ?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Do you see "textedit" listed when running ls?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nadroj
        wrote on last edited by
        #3

        Yes I do ! That's why I don't understand!
        When I do : file textedit
        the message says it's build dynamically
        but when I do : ldd textedit
        the message says that it's not a dynamic executable.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #4

          Do you know how to compile Qt libraries and Qt application on Linux PC?
          Does your Qt building process ends without error?
          Have you installed Qt after building?
          What is the content of qws/linux-arm-gnueabihf-g++/qmake.conf ?

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nadroj
            wrote on last edited by
            #5

            I compile Qt-embedded with this command :
            ./configure -embedded arm -xplatform qws/linux-arm-gnueabihf-g++/ -little-endian -qvfb -lrt -qt-gfx-linuxfb -qt-gfx-qvfb

            and make -j2 then sudo make install

            I add the new qmake in Qtcreator to compile programs.

            My qmake.conf is like this :
            @

            qmake configuration for building with arm-linux-gnueabi-g++

            include(../../common/linux.conf)
            include(../../common/gcc-base-unix.conf)
            include(../../common/g++-unix.conf)
            include(../../common/qws.conf)

            modifications to g++.conf

            QMAKE_CC = arm-linux-gnueabi-gcc-4.6
            QMAKE_CXX = arm-linux-gnueabi-g++-4.6
            QMAKE_LINK = arm-linux-gnueabi-g++-4.6
            QMAKE_LINK_SHLIB = arm-linux-gnueabi-g++-4.6

            modifications to linux.conf

            QMAKE_AR = arm-linux-gnueabi-ar cqs
            QMAKE_OBJCOPY = arm-linux-gnueabi-objcopy
            QMAKE_STRIP = arm-linux-gnueabi-strip

            load(qt_config)
            @
            During the compilation of Qt embedded I had errors but I fixed them with solutions I found on the web.

            [Edit: Added @ tags -- mlong]

            1 Reply Last reply
            0
            • L Offline
              L Offline
              luca
              wrote on last edited by
              #6

              Ok,
              are you using Qt Creator to build you application?
              Have you added the new Qt building tu Qt Creator settings?

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nadroj
                wrote on last edited by
                #7

                Yes I did ! I have any error after building it

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  luca
                  wrote on last edited by
                  #8

                  can you post the result of:
                  @
                  ls -la
                  @
                  in the folder where you have the built executable?

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nadroj
                    wrote on last edited by
                    #9

                    @ls -la
                    total 224
                    drwxrwxr-x 3 linaro linaro 4096 Oct 9 08:24 .
                    drwxr-xr-x 10 linaro linaro 4096 Oct 9 08:24 ..
                    -rw-r--r-- 1 linaro linaro 14365 Sep 11 03:36 example.html
                    drwxrwxr-x 4 linaro linaro 4096 Oct 9 08:24 images
                    -rw-r--r-- 1 linaro linaro 1930 Sep 11 03:36 main.cpp
                    -rwxrwxrwx 1 linaro linaro 108964 Oct 8 15:50 textedit
                    -rw-r--r-- 1 linaro linaro 24236 Sep 11 03:36 textedit.cpp
                    -rw-r--r-- 1 linaro linaro 3690 Sep 11 03:36 textedit.h
                    -rw-r--r-- 1 linaro linaro 535 Oct 9 2012 textedit.pro
                    -rw-r--r-- 1 linaro linaro 45701 Oct 9 2012 textedit.pro.user
                    -rw-r--r-- 1 linaro linaro 1634 Sep 11 03:36 textedit.qrc@

                    I did a chmod 777 textedit to change the rights of the appli.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      luca
                      wrote on last edited by
                      #10

                      Ok, now you are on a Linux PC I suppose, so you need to transfer the executable in the target board and try to execute it.

                      Have you also copied the built libraries on the target board?

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nadroj
                        wrote on last edited by
                        #11

                        My ls -la command was from my Pandaboard.
                        I transfererd my executable in my PandaBoard, and copied the built librairies. I changed my $PATH but I still have

                        @bash : ./textedit : No such file or directory@

                        Did I make something wrong?

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          luca
                          wrote on last edited by
                          #12

                          If you ls is from pandaboard, why did you copy you Qt project and not only the executable?
                          Are you cross-compiling or building directly on the board?

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nadroj
                            wrote on last edited by
                            #13

                            I copied the project because the executable need images included in the folder. I cross compile, I don't build from the board!

                            1 Reply Last reply
                            0
                            • W Offline
                              W Offline
                              wang_______jie
                              wrote on last edited by
                              #14

                              The version of cross-compiler is not suitable.
                              You should use arm-linux-gnueabihf-g++

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                hmariod
                                wrote on last edited by
                                #15

                                Nadroj: I'm trying to compile qt-everywhere-opensource-src-4.8.5 but I had errors running the ./configure. In your post you say you correct the errors, could you tell me how? Thank's.

                                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