Solved 'No such file or directory ' running program
-
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.
-
Hi and welcome to devnet,
Are you sure the file for copied over to the target ?
-
This post is deleted!