Eugene
Eugene

Reputation: 1125

Install cross-compiler in debian

I am trying to install a cross-compiler in Debian, but I encountered the following error:

arm-linux-gnueabihf-gcc: command not found

When I try to install it:

 apt-get install gcc-arm-linux-gnueabihf

It says unable to locate package gcc-arm-linux-gnueabihf (the tutorial I am following).

Upvotes: 1

Views: 9094

Answers (1)

yegorich
yegorich

Reputation: 4849

Debian 9 already provides a collection of cross-compilers for various architectures, so following command is sufficient:

apt-get install gcc-arm-linux-gnueabihf

Alternatively you can use Buildroot. With this project you'll be able to compile everything from toolchain till root file system.

Upvotes: 2

Related Questions