cannot execute file: Exec format error - NETPI - Printable Version +- Hilscher Community Forum (https://forum.hilscher.com) +-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html) +--- Forum: Software (https://forum.hilscher.com/forum-5.html) +--- Thread: cannot execute file: Exec format error - NETPI (/thread-796.html) |
cannot execute file: Exec format error - NETPI - tuliosouza - January-13th-2022
pi@cdd519efd855:~/app$ ./teg9000 bash: ./teg9000: cannot execute file: Exec format error pi@cdd519efd855:~/app$ RE: cannot execute file: Exec format error - NETPI - Armin@netPI - January-13th-2022 Hi, you try to run a program that is not made for the type of CPU your Linux is currently running on. The hilschernetpi/netpi-raspbian container image is compiled as ARM32V7 processor architecture. It is made to run on ARM processors as netPI is supporting. If you now compile a program unter x86 conditions and try to run in in netpi-raspbian container it will never succeed to run on ARM based devices such as netPI. You have to switch your GCC compiler setting to compile your executeable in ARM32 mode. Thx Armin |