title: Error while building android ndk sample project
body: <p>hello i am beginner in developing ndk apps.</p>
  
  <p>I was going to build <a href="http://developer.android.com/sdk/ndk/overview.html#samples" rel="nofollow">sample application</a> but i got following errors while Compiling the native code using the ndk-build command. </p>
  
  <p>I am using <strong>UBUNTU</strong> OS.</p>
  
  <pre><code>nidhi@php-pc1:~/android-sdk-linux_x86/android-ndk-r7/samples/hello-jni$ /home/nidhi/android-sdk-linux_x86/android-ndk-r7/ndk-build
  Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
  Gdbsetup       : libs/armeabi/gdb.setup
  Compile thumb  : hello-jni &lt;= hello-jni.c
  arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
  make: *** [obj/local/armeabi/objs-debug/hello-jni/hello-jni.o] Error 1
  </code></pre>
  
  <p>please help me to solve.. </p>
  
  <p>Edit:</p>
  
  <p>i solve this by set PATH</p>
  
  <p>export PATH=$PATH:/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2</p>
  
  <p>but new error occur</p>
  
  <p>`</p>
  
  <pre><code>android-sdk-linux_x86/android-ndk-r7/samples/hello-jni$ /home/nidhi/android-sdk-linux_x86/android-ndk-r7/ndk-build
  Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
  Gdbsetup       : libs/armeabi/gdb.setup
  Compile thumb  : hello-jni &lt;= hello-jni.c
  cc1: error: unrecognized command line option "-mbionic"
  cc1: error: unrecognized command line option "-mthumb"
  cc1: error: unrecognized command line option "-mfpu=vfp"
  jni/hello-jni.c:1:0: error: bad value (armv5te) for -march= switch
  jni/hello-jni.c:1:0: error: bad value (xscale) for -mtune= switch
  make: *** [obj/local/armeabi/objs-debug/hello-jni/hello-jni.o] Error 1
  </code></pre>
  
  <p>pls help .</p>
  
  <p>Edit : </p>
  
  <p>it solve by set Cross complier PATH</p>
  
  <p>export CROSS_COMPILER=$PATH:/home/nidhi/android-sdk-linux_x86/android-ndk-r7/prebuilt/linux-x86/bin/</p>