Created
May 29, 2013 05:05
-
-
Save brooss/5668077 to your computer and use it in GitHub Desktop.
build krad_nanolib
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
export ANDROID_NDK=/path/to/your/android/ndk/root | |
export TOOLCHAIN=/tmp/toolchain | |
export SYSROOT=$TOOLCHAIN/sysroot/ | |
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$TOOLCHAIN | |
export PATH=$TOOLCHAIN/bin:$PATH | |
export CC=arm-linux-androideabi-gcc | |
export LD=arm-linux-androideabi-ld | |
export AR=arm-linux-androideabi-ar | |
cd ~/krcam/jni/krad_nanolib/ | |
$CC -Wall -c -DKR_LINUX -c -I./ -march=armv7-a -mfpu=neon -mfloat-abi=softfp | |
ar rcs libkrad.a *.o | |
cp libkrad.a ../armeabi-v7a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment