[cfe-dev] How to cross-compile clang for Android ARM device?

Konstantin Tokarev annulen at yandex.ru
Wed Sep 25 11:04:36 PDT 2013


25.09.2013, 21:16, "Anton Smirnov" <dev at antonsmirnov.name>:
> My bad - i had mistyping:export CXX=${CROSS_COMPILE}=g++
> should be:
> export CXX=${CROSS_COMPILE}-g++
>
> BUT later i have configuration/make error:
>
> mba-anton:llvm asmirnov$ sudo make

>sudo make

Why are you using sudo here?

> configure: error: Already configured in /Users/asmirnov/Documents/dev/src/llvm
> make[1]: *** No targets specified and no makefile found.  Stop.
> make: *** [cross-compile-build-tools] Error 1
>
> Makefile exists
>
> 2013/9/25 Anton Smirnov <dev at antonsmirnov.name>
>> 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!
>
> ,
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


-- 
Regards,
Konstantin



More information about the cfe-dev mailing list