Can not compile JSB project under Eclipse

Can not compile JSB project under Eclipse
0.0 0


When I compiled JSB project in “cocos2d-x2.2 + Eclipse(Android Developer Tools) + Cygwin64 + NDK8 + win7-64”, I got below wrong information, and It is okay when I compile a C*+ project under same environment. Then I tried JS examples, that is no problem. The project was generated at my old computer with cocos2d-x version 2.1.4 sometimes ago.
Please give me some help. Thank you very much.

  • set -x
  • ‘D:~~ndk-r8e/ndk-build’~~C /cygdrive/d/cocos2d-x-2.2.0/projects/SaveBeauty/ NDK_MODULE_PATH=/cygdrive/d/cocos2d-x-2.2.0/projects/SaveBeauty/…/…/…:/cygdrive/d/cocos2d-x-2.2.0/projects/SaveBeauty/…/…/…/cocos2dx/platform/third_party/android/prebuilt NDK_LOG=0 V=0
    make: Entering directory’/cygdrive/d/cocos2d-x-2.2.0/projects/SaveBeauty/’
    Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
    Gdbsetup : libs/armeabi/gdb.setup
    Cygwin : Generating dependency file converter script
    Compile++ thumb : cocos2djs_shared <= main.cpp
    jni/hellojavascript/main.cpp: In function ’void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv**, jobject, jint, jint)‘:
    jni/hellojavascript/main.cpp:40:76: error: ’EVNET_COME_TO_FOREGROUND’ was not declared in this scope
    /cygdrive/d/android-ndk-r8e/build/core/ recipe for target ‘obj/local/armeabi/objs-debug/cocos2djs_shared/hellojavascript/main.o’ failed
    make: Leaving directory ‘/cygdrive/d/cocos2d-x-2.2.0/projects/SaveBeauty/’
    make:**** [obj/local/armeabi/objs-debug/cocos2djs_shared/hellojavascript/main.o] Error 1_