Note that there are some explanatory texts on larger screens.

plurals
  1. POError while building android ndk sample project
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload