Difference between revisions of "Cross compile application for VIBEQ / ARCA-V2"
From Yantrr Wiki
m (Vaibhav moved page Cross compile application for bbb to Cross compile application for VIBEQ / ARCA-V2) |
(→Setup ARM Cross-Compiler GCC) |
||
Line 1: | Line 1: | ||
== Setup ARM Cross-Compiler GCC == | == Setup ARM Cross-Compiler GCC == | ||
+ | Download and extract the ARM Cross compiler linaro gcc. From now on consider '''~/''' is the root directory of compilation setup. | ||
+ | '''~/''' | ||
+ | |||
+ | wget -c https://releases.linaro.org/components/toolchain/binaries/6.5-2018.12/arm-linux-gnueabihf/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz | ||
+ | tar xf gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz | ||
+ | export CC=`pwd`/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- | ||
+ | |||
+ | Test Cross-Compiler | ||
+ | '''~/''' | ||
+ | |||
+ | ${CC}gcc --version | ||
+ | arm-linux-gnueabihf-gcc (Linaro GCC 6.5-2018.12) 6.5.0 | ||
+ | Copyright (C) 2017 Free Software Foundation, Inc. | ||
+ | This is free software; see the source for copying conditions. There is NO | ||
+ | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
+ | |||
== Cross-Compiling application == | == Cross-Compiling application == | ||
== Execute binary on ARCA-V2 == | == Execute binary on ARCA-V2 == |
Revision as of 05:07, 22 March 2022
Setup ARM Cross-Compiler GCC
Download and extract the ARM Cross compiler linaro gcc. From now on consider ~/ is the root directory of compilation setup.
~/
wget -c https://releases.linaro.org/components/toolchain/binaries/6.5-2018.12/arm-linux-gnueabihf/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz tar xf gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz export CC=`pwd`/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
Test Cross-Compiler
~/
${CC}gcc --version arm-linux-gnueabihf-gcc (Linaro GCC 6.5-2018.12) 6.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.