Cross compilation issue with Beaglebone Black

Beaglebone Black related support

Cross compilation issue with Beaglebone Black

Postby Vikrant.ere » 14 Jun 2016, 08:00

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.
Vikrant.ere
 
Posts: 1
Joined: 14 Jun 2016, 07:43

Re: Cross compilation issue with Beaglebone Black

Postby thickglass » 12 Dec 2016, 23:00

I got the same message, I think it has something to do with libs that I compile my project with.
thickglass
 
Posts: 1
Joined: 12 Dec 2016, 22:25

support RuneAudio Donate with PayPal


Return to Beaglebone Black

Who is online

Users browsing this forum: No registered users and 0 guests
cron