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. 'No such file or directory ' running program
Forum Updated to NodeBB v4.3 + New Features

'No such file or directory ' running program

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 370 Views 2 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.
  • HupeH Offline
    HupeH Offline
    Hupe
    wrote on last edited by Hupe
    #1

    Hello
    I am tring to transplant Qt to an ARM board. I have the cross-compilation of Qt source file done and used qmake to cross-compile a testing program. But I got '-bash: ./hello: No such file or directory' when i try to run it in ARM board. What did I do wrong during cross-complitation ?
    The cross-compilation chain I use is arm-linux-gnueabihf-g++, and Qt source file is gcc-linaro-aarch64-linux-gnu-4.9-2014.05_linux. Archtecture of host computer is x86 while target is ARM. I use qmake -project and qmake to generate Makefile and use make to generate testing program.
    That‘s the information I got by using file instruct :
    hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-, for GNU/Linux 3.2.0, BuildID[sha1]=39eafd30b1bb5db8ccb46c47848b53286cfb7420, not stripped.
    And that's what I got using uname -a in target board:
    Linux wheezy-armel 3.14.52-g209fc77-dirty #1 SMP PREEMPT Wed Nov 6 17:21:22 CST 2019 armv7l GNU/Linux
    Sorry for my poor English.

    2020.1.16
    Thanks for the attention
    The problem above has been solved.
    I use 'readelf' to check my binary file and find it rely on some lib file in cross-complie chain. I copy the file of arm-linux-gnueabihf/lib in my host computer to /lib in ARM board. Then my binary file could run as normal in ARM.
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you sure the file for copied over to the 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
      • HupeH Offline
        HupeH Offline
        Hupe
        wrote on last edited by
        #3
        This post is deleted!
        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