amoad / amoad-cocos2dx-module

MIT License
1 stars 8 forks source link

Android Studio版のデモアプリでコンパイルエラー #26

Open yunkwanho opened 7 years ago

yunkwanho commented 7 years ago

Android Studio版のデモアプリのコンパイルエラー(v4.11.1以前 )

make: Entering directory `/Users/.../Git/amoad-cocos2dx-module/AMoAdCocos2dxModuleDemo/proj.android-studio/app'
make: *** No rule to make target `jni/../../Classes/AMoAdCocos2dxModule.cpp', needed by `obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AMoAdCocos2dxModule.o'.  Stop.
make: *** Waiting for unfinished jobs....
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
make: Leaving directory `/Users/.../Git/amoad-cocos2dx-module/AMoAdCocos2dxModuleDemo/proj.android-studio/app'
Error running command, return code: 2.
yunkwanho commented 7 years ago

../AMoAdCocos2dxModuleDemo/proj.android-studio/app/jni/Android.mkファイルを以下のように修正する

//修正前(../../)

...
LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AMoAdCocos2dxModule.cpp \
                   ../../Classes/AMoAdNativeCocos2dxModule.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/MainScene.cpp \
                   ../../Classes/FormScene.cpp \
                   ../../Classes/DisplayScene.cpp \
                   ../../Classes/InterstitialScene.cpp \
                   ../../Classes/NativeHtmlScene.cpp \
                   ../../Classes/Bundle.cpp
...

//修正後(../../../)

...
LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../../Classes/AMoAdCocos2dxModule.cpp \
                   ../../../Classes/AMoAdNativeCocos2dxModule.cpp \
                   ../../../Classes/AppDelegate.cpp \
                   ../../../Classes/MainScene.cpp \
                   ../../../Classes/FormScene.cpp \
                   ../../../Classes/DisplayScene.cpp \
                   ../../../Classes/InterstitialScene.cpp \
                   ../../../Classes/NativeHtmlScene.cpp \
                   ../../../Classes/Bundle.cpp
...
yunkwanho commented 7 years ago

v4.11.1+版で対応ずみです。