In file included from G:\mobileWork\cocos2d-2.0-x-2.0.3/cocos2dx/base_nodes/CCNode.h:34:0,
from G:\mobileWork\cocos2d-2.0-x-2.0.3/cocos2dx/actions/CCActionInterval.h:30,
from G:\mobileWork\cocos2d-2.0-x-2.0.3/cocos2dx/include/cocos2d.h:42,
from jni/…/…/Classes/HelloWorldScene.h:4,
from jni/hellocpp/main.cpp:6:
G:\mobileWork\cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/CCGL.h:36:31: fatal error: GLES2/gl2platform.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/game_shared/hellocpp/main.o] Error 1`
What’s the version of Android SDK?
Does Eclipse invoke sample’s “build_native.sh” or use your own script?
If you use your own script, could you please paste it?
What’s the version of Android SDK?
Does Eclipse invoke sample’s “build_native.sh” or use your own script?
If you use your own script, could you please paste it?
“fatal error: GLES2/gl2platform.h: No such file or directory”
坤乾 朱 wrote:
> add “APP_PLATFORM := android-8” to Application.mk
>
> I don’t known why,but this solved my problem.
>
It’s solved my problem too.
And can anyone answer for us?
Thanks
Lukasz Bocianski already explained it : the minimum SDK version for cocos2d-x is currently 2.2, which is API 8.
I have new problem: My example can not run on android- <= 14 (emu and real device (i just tested on real device Samsung i9100 2.3.3) and it work on emu with android-15.
> Error: Gles: No configs match configSpec.