Last active
November 14, 2016 20:20
-
-
Save amboxer21/c6a9f259b76e338fd32e039937711237 to your computer and use it in GitHub Desktop.
ndk cross compiler env variables
This file contains 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
Environment variables to set: | |
export NDK="/home/anthony/android-ndk-r13b" | |
export TOOLCHAIN="/home/anthony/android-toolchain" | |
export export SYSROOT="/home/anthony/android-ndk-r13b/platforms/android-21/arch-arm" | |
export CC="/home/anthony/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-4.9 --sysroot=$SYSROOT" | |
Programs needed on top of the NDK and SDK: | |
sudo apt-get install android-tools-adb android-tools-fastboot | |
Building the standalone toolchain: | |
$NDK/build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir /home/anthony/android-toolchain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment