If you want a dynamically-linked executable, you've to pass the linker path too: arm-linux-gnueabihf-gcc -ohello hello.c Hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, Int main(void) Īrm-linux-gnueabihf-gcc -static -ohello hello.c Then compile your programs in amd64 directly: cat > hello.c Sudo apt-get install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-arm-static Then install qemu-arm-static so that you can run ARM executables directly on linux # armel packages also exist Running ARM programs under linux (without starting QEMU VM!)įirst, cross-compile user programs with GCC-ARM toolchain. If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs. You might want to read this to get an introduction to armel vs armhf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |