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. How to run application binary on Target?
Qt 6.11 is out! See what's new in the release blog

How to run application binary on Target?

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 4.3k 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.
  • P Offline
    P Offline
    post4pavan
    wrote on last edited by
    #1

    Hi, I have a simple code and compiled with qmake and make.
    Please note that I am working and doing this on for a target.
    After getting a binary, I try to run it as the same as we do with the fluidlauncher demo [ I have installed Qt_every_where_opensource_4.7.4 ].

    But it will not work leaving me with
    @post4pavan@ubuntu:~/Work/hi$./hi
    /lib/ld-linux.so.3: No such file or directory@

    when I run this application.
    I place this in folder with application in my rootfs folder which contains /usr/local/Trolltech/Qt-target-version/hi and run it, but still I get the same error

    1.Where should be application binary placed so that I can make it run on
    a. PC &
    b. Desktop
    2.Is it that, I am running this application separately and is a reason that it's not working?

    Please suggest. :: Krishna Pavan

    Qt for Embedded! INTERESTING!

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

      Looks like the build machine and your target machine are not compatible. How did you build your executable?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        post4pavan
        wrote on last edited by
        #3

        Hi, Thank You, Tobias Hunger!

        I ran a qmake, that's prepared for target i.MX5X from freescale, using Qt_Opensource_4.7.4.
        My host machine is 64-bit, Intel, machine, running Ubuntu 10.04.

        I ran as instructed "here":http://developer.qt.nokia.com/forums/viewthread/14429 I got succeded in getting an executable(application/x-executable)

        Qt for Embedded! INTERESTING!

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

          Hey, in that thread I just told you where to not run qmake:-) That has nothing to do with building for a different platform!

          Do you have a mkspec you need to use for your target machine? Do you have a sysroot (a copy of the machine's filesystem with added headers, etc.) to build in/against?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            post4pavan
            wrote on last edited by
            #5

            Hi,

            Yeah, I was completely aware of the cross-compilation.
            In that post, I need to use the qmake in my project folder and not in the filesystem folder, that was actually a mistake.
            The method I followed is correct and has got me a correct makefile with all the cross-compilers&paths required. I have double checked that.

            I am sure that I have used a specific spec file that's intended for i.MX.
            I have also copied the libararies and they are present in my rootfs. That's perfect.

            So, getting the executable was correct with a correct procedure.

            I have run the demo using Qt_SDK_Simulator, got a proper makefile and executable, with support of compilers & libraries installed on Host.

            Problem is with the executable running on specified target.

            Regards :: Krishna Pavan

            Qt for Embedded! INTERESTING!

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

              The Qt Simulator is not emulating the target hardware (it is a simulator, not a emulator for a reason;-). So you can not run the executable that works with the simulator on your device.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                post4pavan
                wrote on last edited by
                #7

                Hi, Thank You, Tobias Hunger!

                yeah, probably I should use QEMU and use the executable in an environment that should be...

                Regards :: Krishna Pavan

                Qt for Embedded! INTERESTING!

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

                  If at all possible go for a cross-compile environment in favor of running the complete build inside an emulator: Cross-compiles are much faster.

                  Down side is that many projects have broken configuration scripts that fail in cross-compiler environments:-(

                  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