Page 1 of 1

Cross compilation issue with Beaglebone Black

PostPosted: 14 Jun 2016, 08:00
by Vikrant.ere
Hello, I am new to linux. I tried to built program on my host machine and cross compiled it for Beglebone Black. While execing it I got an error saying "-bash: file not find". On detail inspection using file command I got following message -
[list=]root@beaglebone:/tmp# file ./Output_Target
./Output_Target: ELF 32-bit LSB executable, ARM, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x296bbb3230b99e1c1a67ccb35f5d0aa758c45fd7, not stripped[/list]

Now if I build the same program using vi or vim editor on Beaglebone Black itself using remote access, it work fine. And using file command gives following message -
[list=]root@beaglebone:/tmp# file ./a.out
./a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x126f779ebfb880ced73f2b15926608c4b2ba5f26, not stripped[/list].

Please suggest me how to make the cross compilation work. As it can be seen the difference is between GNU/Linux version.

Re: Cross compilation issue with Beaglebone Black

PostPosted: 12 Dec 2016, 23:00
by thickglass
I got the same message, I think it has something to do with libs that I compile my project with.