I have meet a problem during compiling my project for android app.
I needed to implement the functionality similar to UISwipeGestureRecognizer’s one, so I used the cocos2dx-extensions which uploaded by Artavazd Barseghyan, https://github.com/spalx/cocos2d-x-extensions.
Then, I integrated it successfully for iOS app, but for android when I was compiling that project, I saw the error message as below:
On Command Prompt:
[armeabi] Compile++ thumb: game_shared <= GameScene.cpp
In file included from jni/…/…/Classes/GameScene.h:14:0,
jni/…/…/Classes/Layer/LevelSelectLayer.h:38:5: error: ‘CCSwipeGestureRecognizer’ does not name a type
jni/…/…/Classes/Layer/LevelSelectLayer.h:39:5: error: ‘CCSwipeGestureRecognizer’ does not name a type
make: * [obj/local/armeabi/objs/game_shared///Classes/GameScene.o] Error 1
make: Leaving directory `/Volumes/Data/Applications/cocos2d-x-2.1.5/FlowBridges/proj.android’
For iOS, I copied the CCGestureRecognizer’s .cpp files and .h files into the directory of extensions of my game directory.
$(my game directory)/libs/extensions/CCGestureRecognizer/
Who can you help me?