[cfe-dev] How to cross-compile clang for Android ARM device?
Anton Smirnov
dev at antonsmirnov.name
Wed Sep 25 09:21:45 PDT 2013
Hi, All.
I'm trying to cross-compile clang to use on arm android device.
I've prepared standalone toolchain from android ndk.
Now i'm getting configuration error:
export CROSS_COMPILE=arm-linux-androideabi
export CC=${CROSS_COMPILE}-gcc
export CXX=${CROSS_COMPILE}=g++
export NDK=/softdev/android-ndk-r8e
export ANDROID_NDK_ROOT=/softdev/android-ndk-r8e
export SYSROOT=$NDK/platforms/android-8/arch-arm
export
PATH=/softdev/arm-toolchain/bin:$PATH:/softdev/android-ndk-r8e/platforms/android-8/arch-arm
./configure --host=arm-linux-androideabi --target=arm-linux-androideabi
--prefix=/softdev/arduinodroid_clang/arm
Error:
checking tool compatibility... configure: error: g++|clang++|icc required
but not found
Can anybody help me or describe step-by-step?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130925/89060cb0/attachment.html>
More information about the cfe-dev
mailing list