Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cross compiling stuff
# FIRST: exported tools to cross compile
export PATH=/home/eric/src/imx6/opt/ESX/imx6/sysroots/i686-linux/usr/bin:/home/eric/src/imx6/opt/ESX/imx6/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi:$PATH
export PKG_CONFIG_SYSROOT_DIR=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi
export PKG_CONFIG_PATH=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi/usr/lib/pkgconfig
export CONFIG_SITE=/home/eric/src/imx6/opt/ESX/imx6/site-config-armv7a-vfp-neon-linux-gnueabi
export CC="arm-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi"
export CXX="arm-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi"
export CPP="arm-linux-gnueabi-gcc -E -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi"
export AS="arm-linux-gnueabi-as "
export LD="arm-linux-gnueabi-ld --sysroot=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi"
export GDB=arm-linux-gnueabi-gdb
export STRIP=arm-linux-gnueabi-strip
export RANLIB=arm-linux-gnueabi-ranlib
export OBJCOPY=arm-linux-gnueabi-objcopy
export OBJDUMP=arm-linux-gnueabi-objdump
export AR=arm-linux-gnueabi-ar
export NM=arm-linux-gnueabi-nm
export M4=m4
export TARGET_PREFIX=arm-linux-gnueabi-
export CONFIGURE_FLAGS="--target=arm-linux-gnueabi --host=arm-linux-gnueabi --build=i686-linux --with-libtool-sysroot=/home/eric/src/imx6/opt/ESX/imx6/sysroots/armv7a-vfp-neon-linux-gnueabi"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive"
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
export CPPFLAGS=""
export PYTHONHOME=/home/eric/src/imx6/opt/ESX/imx6/sysroots/i686-linux/usr
export ARCH=arm
# alsa-lib
./configure --prefix=/tmp/alsa-lib-1.0.27.2/output --target=arm-linux-gnueabi --host=arm-linux-gnueabi
# ffmpeg
./configure --cross-prefix=arm-linux-gnueabi- --enable-cross-compile --target-os=linux --arch=arm --cpu=cortex-a8 --extra-cflags='-march=armv7-a -mfpu=neon -mfloat-abi=softfp' --sysroot=/home/dkuhne/src/badr_project/opt/thirdparty/XSE/imx6/rev_08_05_2014/sysroots/armv7a-vfp-neon-linux-gnueabi/ --prefix=/tmp/ffmpeg/output --enable-shared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment