Score:2

Cross compile C/Cpp application for target ARM arch support ubuntu18.04 32-bit, on host machine i.e. ubuntu 18.04 64-bit machine using cross compiler

mx flag

Trying to achieve the below task

Cross compile C/Cpp application for target ARM architechture supports ubuntu 18.04 32-bit on a host machine i.e. ubuntu 18.04 64-bit machine using cross compiler.

followed steps below but nothing is working out and getting the Error given below..

sudo apt-get install gcc-7-multilib

/home/user/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/arm-linux-gnueabihf-gcc main.c -m32 -o main

Error

arm-linux-gnueabihf-gcc: command not found

Help is highly appreciated..!

Score:4
zw flag

Having toolchain extracted into home directory without adjusting PATH-variable will not work.

You need to install different package which provides arm-linux-gnueabihf-gcc executable by

sudo apt-get install gcc-arm-linux-gnueabihf

and then use arm-linux-gnueabihf-gcc command.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.