<div dir="ltr"><div><div>Hello<br><br>I am trying to cross compile a Gstreamer package for Android using the Cerbero build system but it fails because it cannot make the C compiler working.<br><br>I work on Ubuntu 12.04. I may have missed something with cerbero installation: does it require the android ndk (version r8b only) to be installed under its directory? not other version in no other place? Or maybe I incorrectly installed my NDK....<br>
<br>I have the Android NDK R8D installed in a separate directory <MYHOME>/Android/android-ndk-r8d<br><br>I added in the PATH :<br> <MYHOME>/Android/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin<br>
<br>I have exported SYSROOT=<MYHOME>/Android/android-ndk-r8d/platforms/android-9/arch-arm<br><br>when I try: arm-linux-androideabi-gcc --sysroot=$SYSROOT helloworld.c : it generates a.out<br><br>but cerbero complains: cerbero -c config/cross-android.cbc package gstreamer-sdk<br>
<br> checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc -fuse-ld=gold<br> checking whether the C compiler works... no<br> configure: error: in `<MYHOME>/cerbero/sources/android_arm/libffi-3.0.11/arm-unknown-linux-androideabi':<br>
configure: error: C compiler cannot create executables<br><br>and the file config.log shows that the sysroot variable is taken as:<br> --sysroot=<MYHOME>/cerbero/android-ndk-r8b/platforms/android-9/arch-arm<br><br>
How can I change the sysrrot variable used by cerbero?<br></div>Or is my problem not related?<br><br></div>Thanks<br></div>