agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
510 stars 398 forks source link

32 Bit binary on 64 bit machine #1155

Closed lachlancresswell closed 1 year ago

lachlancresswell commented 1 year ago

I have a 32 bit binary I have compiled on a 32 bit machine. Installing and running the binary on a 64 bit Yocto build returns a 'No such file or directory' error which seems to be an architecture mismatch. What else needs to be done to allow a 32 bit binary to run on a 64 bit build?

agherzan commented 1 year ago

You are probably facing https://stackoverflow.com/questions/2716702/no-such-file-or-directory-error-when-executing-a-binary. Doesn't sound like a BSP issue so I'll close this for now. I hope it helps.

kraj commented 1 year ago

I have a 32 bit binary I have compiled on a 32 bit machine. Installing and running the binary on a 64 bit Yocto build returns a 'No such file or directory' error which seems to be an architecture mismatch. What else needs to be done to allow a 32 bit binary to run on a 64 bit build?

you need to enable 32bit multilib in yocto and add approprite dependencies to your apps recipe