1、g4@g4-PC
~(cygwin窗口命令)
$ cd(有空格) /cygdrive/d/JavaAndroid/workspace/CeiShi/jni(进入jni目录)
g4@g4-PC /cygdrive/d/JavaAndroid/workspace/CeiShi/jni
$ $NDK/ndk-build(调用cygwin目录下的bin目录下的make.exe命令进行编译)
-bash: /ndk-build: No such file or
directory(出问题了。。。)
改成:
$ ndk-build(去掉了前面的$NDK就可以了,$NDK代表环境变量,应该是环境变量没有配置好)
[arm64-v8a] Install : libhello-jni.so =>
libs/arm64-v8a/libhello-jni.so
[x86_64] Install : libhello-jni.so =>
libs/x86_64/libhello-jni.so
[mips64] Install : libhello-jni.so =>
libs/mips64/libhello-jni.so
[armeabi-v7a] Install : libhello-jni.so =>
libs/armeabi-v7a/libhello-jni. so
[armeabi] Install : libhello-jni.so =>
libs/armeabi/libhello-jni.so
[x86] Install : libhello-jni.so =>
libs/x86/libhello-jni.so
[mips] Install : libhello-jni.so =>
libs/mips/libhello-jni.so
2、$
cd
/cygdrive/d/JavaAndroid/workspace/CeiShi/jni
g4@g4-PC /cygdrive/d/JavaAndroid/workspace/CeiShi/jni
$ ndk-build
[armeabi] Cygwin : Generating dependency file
converter script
[armeabi] Compile thumb : CeiShi <=
CeiShi.c
In file included from
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:45:0,
from
D:/JavaAndroid/workspace/CeiShi/jni/CeiShi.c:1:
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:34:9: error:
unknown type name '__i nt64'
typedef __int64 jlong;
^
In file included from
D:/JavaAndroid/workspace/CeiShi/jni/CeiShi.c:1:0:
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:220:19: error:
expected ')' before '*' token
jint
(JNICALL *GetVersion)(JNIEnv *env);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:222:21: error:
expected ')' before '*' token
jclass
(JNICALL *DefineClass)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:225:21: error:
expected ')' before '*' token
jclass
(JNICALL *FindClass)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:228:24: error:
expected ')' before '*' token
jmethodID (JNICALL *FromReflectedMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:230:23: error:
expected ')' before '*' token
jfieldID (JNICALL *FromReflectedField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:233:22: error:
expected ')' before '*' token
jobject (JNICALL *ToReflectedMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:236:21: error:
expected ')' before '*' token
jclass
(JNICALL *GetSuperclass)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:238:23: error:
expected ')' before '*' token
jboolean (JNICALL *IsAssignableFrom)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:241:22: error:
expected ')' before '*' token
jobject (JNICALL *ToReflectedField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:244:19: error:
expected ')' before '*' token
jint
(JNICALL *Throw)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:246:19: error:
expected ')' before '*' token
jint
(JNICALL *ThrowNew)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:248:25: error:
expected ')' before '*' token
jthrowable (JNICALL *ExceptionOccurred)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:250:19: error:
expected ')' before '*' token
void
(JNICALL *ExceptionDescribe)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:252:19: error:
expected ')' before '*' token
void
(JNICALL *ExceptionClear)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:254:19: error:
expected ')' before '*' token
void
(JNICALL *FatalError)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:257:19: error:
expected ')' before '*' token
jint
(JNICALL *PushLocalFrame)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:259:22: error:
expected ')' before '*' token
jobject (JNICALL *PopLocalFrame)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:262:22: error:
expected ')' before '*' token
jobject (JNICALL *NewGlobalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:264:19: error:
expected ')' before '*' token
void
(JNICALL *DeleteGlobalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:266:19: error:
expected ')' before '*' token
void
(JNICALL *DeleteLocalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:268:23: error:
expected ')' before '*' token
jboolean (JNICALL *IsSameObject)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:270:22: error:
expected ')' before '*' token
jobject (JNICALL *NewLocalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:272:19: error:
expected ')' before '*' token
jint
(JNICALL *EnsureLocalCapacity)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:275:22: error:
expected ')' before '*' token
jobject (JNICALL *AllocObject)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:277:22: error:
expected ')' before '*' token
jobject (JNICALL *NewObject)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:279:22: error:
expected ')' before '*' token
jobject (JNICALL *NewObjectV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:281:22: error:
expected ')' before '*' token
jobject (JNICALL *NewObjectA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:284:21: error:
expected ')' before '*' token
jclass
(JNICALL *GetObjectClass)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:286:23: error:
expected ')' before '*' token
jboolean (JNICALL *IsInstanceOf)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:289:24: error:
expected ')' before '*' token
jmethodID (JNICALL *GetMethodID)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:292:22: error:
expected ')' before '*' token
jobject (JNICALL *CallObjectMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:294:22: error:
expected ')' before '*' token
jobject (JNICALL *CallObjectMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:296:22: error:
expected ')' before '*' token
jobject (JNICALL *CallObjectMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:299:23: error:
expected ')' before '*' token
jboolean (JNICALL *CallBooleanMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:301:23: error:
expected ')' before '*' token
jboolean (JNICALL *CallBooleanMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:303:23: error:
expected ')' before '*' token
jboolean (JNICALL *CallBooleanMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:306:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallByteMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:308:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallByteMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:310:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallByteMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:313:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallCharMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:315:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallCharMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:317:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallCharMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:320:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallShortMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:322:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallShortMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:324:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallShortMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:327:19: error:
expected ')' before '*' token
jint
(JNICALL *CallIntMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:329:19: error:
expected ')' before '*' token
jint
(JNICALL *CallIntMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:331:19: error:
expected ')' before '*' token
jint
(JNICALL *CallIntMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:334:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallLongMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:336:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallLongMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:338:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallLongMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:341:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallFloatMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:343:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallFloatMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:345:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallFloatMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:348:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallDoubleMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:350:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallDoubleMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:352:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallDoubleMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:355:19: error:
expected ')' before '*' token
void
(JNICALL *CallVoidMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:357:19: error:
expected ')' before '*' token
void
(JNICALL *CallVoidMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:359:19: error:
expected ')' before '*' token
void
(JNICALL *CallVoidMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:362:22: error:
expected ')' before '*' token
jobject (JNICALL
*CallNonvirtualObjectMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:364:22: error:
expected ')' before '*' token
jobject (JNICALL
*CallNonvirtualObjectMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:367:22: error:
expected ')' before '*' token
jobject (JNICALL
*CallNonvirtualObjectMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:371:23: error:
expected ')' before '*' token
jboolean (JNICALL
*CallNonvirtualBooleanMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:373:23: error:
expected ')' before '*' token
jboolean (JNICALL
*CallNonvirtualBooleanMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:376:23: error:
expected ')' before '*' token
jboolean (JNICALL
*CallNonvirtualBooleanMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:380:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallNonvirtualByteMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:382:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallNonvirtualByteMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:385:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallNonvirtualByteMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:389:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallNonvirtualCharMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:391:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallNonvirtualCharMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:394:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallNonvirtualCharMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:398:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallNonvirtualShortMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:400:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallNonvirtualShortMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:403:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallNonvirtualShortMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:407:19: error:
expected ')' before '*' token
jint
(JNICALL *CallNonvirtualIntMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:409:19: error:
expected ')' before '*' token
jint
(JNICALL *CallNonvirtualIntMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:412:19: error:
expected ')' before '*' token
jint
(JNICALL *CallNonvirtualIntMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:416:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallNonvirtualLongMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:418:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallNonvirtualLongMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:421:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallNonvirtualLongMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:425:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallNonvirtualFloatMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:427:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallNonvirtualFloatMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:430:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallNonvirtualFloatMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:434:22: error:
expected ')' before '*' token
jdouble (JNICALL
*CallNonvirtualDoubleMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:436:22: error:
expected ')' before '*' token
jdouble (JNICALL
*CallNonvirtualDoubleMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:439:22: error:
expected ')' before '*' token
jdouble (JNICALL
*CallNonvirtualDoubleMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:443:19: error:
expected ')' before '*' token
void
(JNICALL *CallNonvirtualVoidMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:445:19: error:
expected ')' before '*' token
void
(JNICALL *CallNonvirtualVoidMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:448:19: error:
expected ')' before '*' token
void
(JNICALL *CallNonvirtualVoidMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:452:23: error:
expected ')' before '*' token
jfieldID (JNICALL *GetFieldID)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:455:22: error:
expected ')' before '*' token
jobject (JNICALL *GetObjectField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:457:23: error:
expected ')' before '*' token
jboolean (JNICALL *GetBooleanField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:459:20: error:
expected ')' before '*' token
jbyte
(JNICALL *GetByteField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:461:20: error:
expected ')' before '*' token
jchar
(JNICALL *GetCharField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:463:21: error:
expected ')' before '*' token
jshort
(JNICALL *GetShortField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:465:19: error:
expected ')' before '*' token
jint
(JNICALL *GetIntField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:467:20: error:
expected ')' before '*' token
jlong
(JNICALL *GetLongField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:469:21: error:
expected ')' before '*' token
jfloat
(JNICALL *GetFloatField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:471:22: error:
expected ')' before '*' token
jdouble (JNICALL *GetDoubleField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:474:19: error:
expected ')' before '*' token
void
(JNICALL *SetObjectField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:476:19: error:
expected ')' before '*' token
void
(JNICALL *SetBooleanField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:478:19: error:
expected ')' before '*' token
void
(JNICALL *SetByteField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:480:19: error:
expected ')' before '*' token
void
(JNICALL *SetCharField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:482:19: error:
expected ')' before '*' token
void
(JNICALL *SetShortField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:484:19: error:
expected ')' before '*' token
void
(JNICALL *SetIntField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:486:19: error:
expected ')' before '*' token
void
(JNICALL *SetLongField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:488:19: error:
expected ')' before '*' token
void
(JNICALL *SetFloatField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:490:19: error:
expected ')' before '*' token
void
(JNICALL *SetDoubleField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:493:24: error:
expected ')' before '*' token
jmethodID (JNICALL *GetStaticMethodID)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:496:22: error:
expected ')' before '*' token
jobject (JNICALL *CallStaticObjectMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:498:22: error:
expected ')' before '*' token
jobject (JNICALL *CallStaticObjectMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:500:22: error:
expected ')' before '*' token
jobject (JNICALL *CallStaticObjectMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:503:23: error:
expected ')' before '*' token
jboolean (JNICALL *CallStaticBooleanMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:505:23: error:
expected ')' before '*' token
jboolean (JNICALL
*CallStaticBooleanMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:507:23: error:
expected ')' before '*' token
jboolean (JNICALL
*CallStaticBooleanMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:510:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallStaticByteMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:512:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallStaticByteMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:514:20: error:
expected ')' before '*' token
jbyte
(JNICALL *CallStaticByteMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:517:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallStaticCharMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:519:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallStaticCharMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:521:20: error:
expected ')' before '*' token
jchar
(JNICALL *CallStaticCharMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:524:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallStaticShortMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:526:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallStaticShortMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:528:21: error:
expected ')' before '*' token
jshort
(JNICALL *CallStaticShortMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:531:19: error:
expected ')' before '*' token
jint
(JNICALL *CallStaticIntMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:533:19: error:
expected ')' before '*' token
jint
(JNICALL *CallStaticIntMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:535:19: error:
expected ')' before '*' token
jint
(JNICALL *CallStaticIntMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:538:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallStaticLongMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:540:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallStaticLongMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:542:20: error:
expected ')' before '*' token
jlong
(JNICALL *CallStaticLongMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:545:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallStaticFloatMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:547:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallStaticFloatMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:549:21: error:
expected ')' before '*' token
jfloat
(JNICALL *CallStaticFloatMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:552:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallStaticDoubleMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:554:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallStaticDoubleMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:556:22: error:
expected ')' before '*' token
jdouble (JNICALL *CallStaticDoubleMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:559:19: error:
expected ')' before '*' token
void
(JNICALL *CallStaticVoidMethod)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:561:19: error:
expected ')' before '*' token
void
(JNICALL *CallStaticVoidMethodV)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:563:19: error:
expected ')' before '*' token
void
(JNICALL *CallStaticVoidMethodA)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:566:23: error:
expected ')' before '*' token
jfieldID (JNICALL *GetStaticFieldID)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:568:22: error:
expected ')' before '*' token
jobject (JNICALL *GetStaticObjectField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:570:23: error:
expected ')' before '*' token
jboolean (JNICALL *GetStaticBooleanField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:572:20: error:
expected ')' before '*' token
jbyte
(JNICALL *GetStaticByteField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:574:20: error:
expected ')' before '*' token
jchar
(JNICALL *GetStaticCharField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:576:21: error:
expected ')' before '*' token
jshort
(JNICALL *GetStaticShortField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:578:19: error:
expected ')' before '*' token
jint
(JNICALL *GetStaticIntField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:580:20: error:
expected ')' before '*' token
jlong
(JNICALL *GetStaticLongField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:582:21: error:
expected ')' before '*' token
jfloat
(JNICALL *GetStaticFloatField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:584:22: error:
expected ')' before '*' token
jdouble (JNICALL *GetStaticDoubleField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:587:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticObjectField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:589:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticBooleanField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:591:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticByteField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:593:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticCharField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:595:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticShortField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:597:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticIntField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:599:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticLongField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:601:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticFloatField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:603:19: error:
expected ')' before '*' token
void
(JNICALL *SetStaticDoubleField)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:606:22: error:
expected ')' before '*' token
jstring (JNICALL *NewString)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:608:20: error:
expected ')' before '*' token
jsize
(JNICALL *GetStringLength)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:610:27: error:
expected ')' before '*' token
const
jchar *(JNICALL *GetStringChars)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:612:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseStringChars)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:615:22: error:
expected ')' before '*' token
jstring (JNICALL *NewStringUTF)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:617:20: error:
expected ')' before '*' token
jsize
(JNICALL *GetStringUTFLength)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:619:26: error:
expected ')' before '*' token
const
char* (JNICALL *GetStringUTFChars)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:621:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseStringUTFChars)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:625:20: error:
expected ')' before '*' token
jsize
(JNICALL *GetArrayLength)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:628:27: error:
expected ')' before '*' token
jobjectArray (JNICALL *NewObjectArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:630:22: error:
expected ')' before '*' token
jobject (JNICALL *GetObjectArrayElement)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:632:19: error:
expected ')' before '*' token
void
(JNICALL *SetObjectArrayElement)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:635:28: error:
expected ')' before '*' token
jbooleanArray (JNICALL *NewBooleanArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:637:25: error:
expected ')' before '*' token
jbyteArray (JNICALL *NewByteArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:639:25: error:
expected ')' before '*' token
jcharArray (JNICALL *NewCharArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:641:26: error:
expected ')' before '*' token
jshortArray (JNICALL *NewShortArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:643:24: error:
expected ')' before '*' token
jintArray (JNICALL *NewIntArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:645:25: error:
expected ')' before '*' token
jlongArray (JNICALL *NewLongArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:647:26: error:
expected ')' before '*' token
jfloatArray (JNICALL *NewFloatArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:649:27: error:
expected ')' before '*' token
jdoubleArray (JNICALL *NewDoubleArray)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:652:25: error:
expected ')' before '*' token
jboolean * (JNICALL
*GetBooleanArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:654:22: error:
expected ')' before '*' token
jbyte
* (JNICALL *GetByteArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:656:22: error:
expected ')' before '*' token
jchar
* (JNICALL *GetCharArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:658:23: error:
expected ')' before '*' token
jshort
* (JNICALL *GetShortArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:660:21: error:
expected ')' before '*' token
jint *
(JNICALL *GetIntArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:662:22: error:
expected ')' before '*' token
jlong
* (JNICALL *GetLongArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:664:23: error:
expected ')' before '*' token
jfloat
* (JNICALL *GetFloatArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:666:24: error:
expected ')' before '*' token
jdouble * (JNICALL *GetDoubleArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:669:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseBooleanArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:671:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseByteArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:673:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseCharArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:675:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseShortArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:677:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseIntArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:679:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseLongArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:681:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseFloatArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:683:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseDoubleArrayElements)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:686:19: error:
expected ')' before '*' token
void
(JNICALL *GetBooleanArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:688:19: error:
expected ')' before '*' token
void
(JNICALL *GetByteArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:690:19: error:
expected ')' before '*' token
void
(JNICALL *GetCharArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:692:19: error:
expected ')' before '*' token
void
(JNICALL *GetShortArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:694:19: error:
expected ')' before '*' token
void
(JNICALL *GetIntArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:696:19: error:
expected ')' before '*' token
void
(JNICALL *GetLongArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:698:19: error:
expected ')' before '*' token
void
(JNICALL *GetFloatArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:700:19: error:
expected ')' before '*' token
void
(JNICALL *GetDoubleArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:703:19: error:
expected ')' before '*' token
void
(JNICALL *SetBooleanArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:705:19: error:
expected ')' before '*' token
void
(JNICALL *SetByteArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:707:19: error:
expected ')' before '*' token
void
(JNICALL *SetCharArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:709:19: error:
expected ')' before '*' token
void
(JNICALL *SetShortArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:711:19: error:
expected ')' before '*' token
void
(JNICALL *SetIntArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:713:19: error:
expected ')' before '*' token
void
(JNICALL *SetLongArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:715:19: error:
expected ')' before '*' token
void
(JNICALL *SetFloatArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:717:19: error:
expected ')' before '*' token
void
(JNICALL *SetDoubleArrayRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:720:19: error:
expected ')' before '*' token
jint
(JNICALL *RegisterNatives)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:723:19: error:
expected ')' before '*' token
jint
(JNICALL *UnregisterNatives)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:726:19: error:
expected ')' before '*' token
jint
(JNICALL *MonitorEnter)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:728:19: error:
expected ')' before '*' token
jint
(JNICALL *MonitorExit)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:731:19: error:
expected ')' before '*' token
jint
(JNICALL *GetJavaVM)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:734:19: error:
expected ')' before '*' token
void
(JNICALL *GetStringRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:736:19: error:
expected ')' before '*' token
void
(JNICALL *GetStringUTFRegion)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:739:21: error:
expected ')' before '*' token
void *
(JNICALL *GetPrimitiveArrayCritical)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:741:19: error:
expected ')' before '*' token
void
(JNICALL *ReleasePrimitiveArrayCritical)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:744:28: error:
expected ')' before '*' token
const
jchar * (JNICALL *GetStringCritical)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:746:19: error:
expected ')' before '*' token
void
(JNICALL *ReleaseStringCritical)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:749:20: error:
expected ')' before '*' token
jweak
(JNICALL *NewWeakGlobalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:751:19: error:
expected ')' before '*' token
void
(JNICALL *DeleteWeakGlobalRef)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:754:23: error:
expected ')' before '*' token
jboolean (JNICALL *ExceptionCheck)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:757:22: error:
expected ')' before '*' token
jobject (JNICALL *NewDirectByteBuffer)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:759:20: error:
expected ')' before '*' token
void*
(JNICALL *GetDirectBufferAddress)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:761:20: error:
expected ')' before '*' token
jlong
(JNICALL *GetDirectBufferCapacity)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:766:29: error:
expected ')' before '*' token
jobjectRefType (JNICALL *GetObjectRefType)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:768:1: warning: no
semicolon at end of struct or union
};
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1895:19: error:
expected ')' before '* '
token
jint
(JNICALL *DestroyJavaVM)(JavaVM *vm);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1897:19: error:
expected ')' before '* '
token
jint
(JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void
*args);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1899:19: error:
expected ')' before '* '
token
jint
(JNICALL *DetachCurrentThread)(JavaVM *vm);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1901:19: error:
expected ')' before '* '
token
jint
(JNICALL *GetEnv)(JavaVM *vm, void **penv, jint version);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1903:19: error:
expected ')' before '* '
token
jint
(JNICALL *AttachCurrentThreadAsDaemon)(JavaVM *vm, void **penv,
void * args);
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1904:1: warning: no
semicolon at end o f struct
or union
};
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h: In function
'__declspec':
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1935:1: error:
expected '=', ',', ';', 'asm' or '__attribute__' before
'JNI_GetDefaultJavaVMInitArgs'
JNI_GetDefaultJavaVMInitArgs(void
*args);
^
In file included from
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:45:0,
from
D:/JavaAndroid/workspace/CeiShi/jni/CeiShi.c:1:
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:30:19: error:
expected declaration specifiers before '__declspec'
#define JNIIMPORT
__declspec(dllimport)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1932:32: note: in
expansion of macro ' JNIIMPORT'
#define _JNI_IMPORT_OR_EXPORT_
JNIIMPORT
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1937:1: note: in
expansion of macro '_ JNI_IMPORT_OR_EXPORT_'
_JNI_IMPORT_OR_EXPORT_ jint JNICALL
^
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:30:19: error:
expected declaration specifiers before '__declspec'
#define JNIIMPORT
__declspec(dllimport)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1932:32: note: in
expansion of macro ' JNIIMPORT'
#define _JNI_IMPORT_OR_EXPORT_
JNIIMPORT
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1940:1: note: in
expansion of macro '_ JNI_IMPORT_OR_EXPORT_'
_JNI_IMPORT_OR_EXPORT_ jint JNICALL
^
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:29:19: error:
expected declaration specifiers before '__declspec'
#define JNIEXPORT
__declspec(dllexport)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1944:1: note: in
expansion of macro 'J NIEXPORT'
JNIEXPORT jint JNICALL
^
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:29:19: error:
expected declaration specifiers before '__declspec'
#define JNIEXPORT
__declspec(dllexport)
^
D:/JavaAndroid/workspace/CeiShi/jni/jni.h:1947:1: note: in
expansion of macro 'J NIEXPORT'
JNIEXPORT void JNICALL
^
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:29:19: error:
expected declaration specifiers before '__declspec'
#define JNIEXPORT
__declspec(dllexport)
^
D:/JavaAndroid/workspace/CeiShi/jni/com_example_ceishi_MainActivity.h:15:1:
note : in expansion of macro
'JNIEXPORT'
JNIEXPORT void JNICALL
Java_com_example_ceishi_MainActivity_displayHelloWorld
^
D:/JavaAndroid/workspace/CeiShi/jni/jni_md.h:29:19: error:
expected declaration specifiers before '__declspec'
#define JNIEXPORT
__declspec(dllexport)
^
D:/JavaAndroid/workspace/CeiShi/jni/CeiShi.c:4:1: note: in
expansion of macro 'J NIEXPORT'
JNIEXPORT void JNICALL
Java_com_example_ceishi_MainActivity_displayHelloWorld
^
D:/JavaAndroid/workspace/CeiShi/jni/CeiShi.c:8:1: error:
expected '{' at end of input
}
^
/cygdrive/d/JavaAndroid/ndk/build/core/build-binary.mk:447:
recipe for target '/ cygdrive/d/JavaAndroid/workspace/CeiShi/obj/local/armeabi/objs/CeiShi/CeiShi.o'
failed
make: ***
[/cygdrive/d/JavaAndroid/workspace/CeiShi/obj/local/armeabi/objs/CeiSh
i/CeiShi.o] Error 1
查看原文件,项目名称前有一把红色的叉叉,CeiShi.c源文件老是提示“jnienv could not be
resolved and jobject could not be
resolved”,com.example.ceishi.MainActivity.h头文件代码老是有黄色的下划线警告。
解决办法:可能是新建的时候(默认)新建的是c++项目,写的代码是c代码,造成的。将CeiShi.c改回原来的
CeiShi.cpp就可以了。这时编译,出现了新的问题。。。如下所示:
3、$ ndk-build
make: *** No rule to make target
'/cygdrive/d/JavaAndroid/workspace/CeiShi/jni/CeiShi.c', needed by
'/cygdrive/d/JavaAndroid/workspace/CeiShi/obj/local/arm64-v8a/objs/CeiShi/CeiShi.o'。
停止。
g4@g4-PC /cygdrive/d/JavaAndroid/workspace/CeiShi/jni
解决办法:将Android.mk文件中的“LOCAL_SRC_FILES :=
CeiShi.c”改成“LOCAL_SRC_FILES := CeiShi.cpp”
4、编译别人的C代码
g4@g4-PC ~
$ cd /cygdrive/D/JavaAndroid/workspace/H264Android/jni
g4@g4-PC
/cygdrive/D/JavaAndroid/workspace/H264Android/jni
$ ndk-build
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
Android NDK:
WARNING:/cygdrive/D/JavaAndroid/workspace/H264Android/jni/Android.mk:H264Android:
non-system libraries in linker flags: -lgcc
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a
Android NDK: This is
likely to result in incorrect builds. Try using
LOCAL_STATIC_LIBRARIES
Android NDK: or
LOCAL_SHARED_LIBRARIES instead to list the library dependencies of
the
Android NDK: current
module
[arm64-v8a] SharedLibrary :
libH264Android.so
aarch64-linux-android-g++.exe: error:
/cygdrive/D/JavaAndroid/workspace/H264Android/jni/libx264/lib/libx264.a:
No such file or directory
/cygdrive/d/JavaAndroid/ndk/build/core/build-binary.mk:647:
recipe for target
'/cygdrive/D/JavaAndroid/workspace/H264Android/obj/local/arm64-v8a/libH264Android.so'
failed
make: ***
[/cygdrive/D/JavaAndroid/workspace/H264Android/obj/local/arm64-v8a/libH264Android.so]
Error 1
解决办法:???