Created
January 24, 2011 23:13
-
-
Save guardianproject/794187 to your computer and use it in GitHub Desktop.
getting the env setup
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
##SETUP YOUR NDK ENVIRONMENT | |
export ANDROID_NDK_ROOT=~/android/ndk | |
export MY_DEV_HOME=/home/n8fr8/android | |
export ANDROID_PLATFORM_VERSION=8 | |
export SYSROOT=$ANDROID_NDK_ROOT/platforms/android-$ANDROID_PLATFORM_VERSION/arch-arm | |
##NOW BUILD THE TOOLCHAIN FOR A SPECIFIC VERSION OF ANDROID | |
cd $ANDROID_NDK_ROOT/build/tools | |
./make-standalone-toolchain.sh --platform=android-$ANDROID_PLATFORM_VERSION --install-dir=$MY_DEV_HOME/my-android-toolchain --ndk-dir=$ANDROID_NDK_ROOT | |
##NOW ADD THE STANDAONE COMPILER TO YOUR PATH | |
export PATH=$MY_DEV_HOME/my-android-toolchain/bin/:$PATH | |
export CC=arm-linux-androideabi-gcc | |
##THEN TO BUILD SOMETHING | |
./configure --host=arm-none-linux-gnueabi --enable-static | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment