Last active
May 31, 2021 02:19
-
-
Save griloHBG/f3276f39c97bcbe9c881bfdeff80813e to your computer and use it in GitHub Desktop.
How to run configure to crosscompile from x86_64 to arm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CC C compiler command | |
# CFLAGS C compiler flags | |
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
# nonstandard directory <lib dir> | |
# LIBS libraries to pass to the linker, e.g. -l<library> | |
# CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
# you have headers in a nonstandard directory <include dir> | |
# CPP C preprocessor | |
# CXX C++ compiler command | |
# CXXFLAGS C++ compiler flags | |
# LT_SYS_LIBRARY_PATH | |
# User-defined run-time library search path. | |
# CXXCPP C++ preprocessor | |
# PKG_CONFIG path to pkg-config utility | |
# PKG_CONFIG_PATH | |
# directories to add to pkg-config's search path | |
# PKG_CONFIG_LIBDIR | |
# path overriding pkg-config's built-in search path | |
# CPPUTEST_CFLAGS | |
# C compiler flags for CPPUTEST, overriding pkg-config | |
# CPPUTEST_LIBS | |
# linker flags for CPPUTEST, overriding pkg-config | |
export LINARO_HOME=/home/user/gcc-linaro-6.3.1/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf | |
export CC=$LINARO_HOME/bin/arm-linux-gnueabihf-gcc | |
export CXX=$LINARO_HOME/bin/arm-linux-gnueabihf-g++ | |
export CPP=$LINARO_HOME/bin/arm-linux-gnueabihf-cpp | |
export CXXCPP=$LINARO_HOME/bin/arm-linux-gnueabihf-cpp | |
export SYSROOT=/home/user/gcc-linaro-6.3.1/sysroot-glibc-linaro-2.23-2017.05-arm-linux-gnueabihf | |
../configure \ | |
--with-sysroot=$SYSROOT \ | |
--host=arm-linux-gnueabihf \ | |
--prefix=/media/user/Data/Git/lely-core/install-arm \ | |
--disable-python \ | |
--disable-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment