Cocos2dx alpha 3.0 building for android on windows7


#1

I am building for android on windows 7 64-bit using cygwin .I get this message when I run build_native.sh
In file included from D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/include/cocos2d.h:253:0,
from jni/…/…/Classes/AppDelegate.h:4,
from jni/testcpp/main.cpp:1:
D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/textures/CCTextureCache.h:183:5: error: ‘thread’ in namespace ‘std’ does not name a type
D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/textures/CCTextureCache.h:188:5: error: ‘mutex’ in namespace ‘std’ does not name a type
D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/textures/CCTextureCache.h:189:5: error: ‘mutex’ in namespace ‘std’ does not name a type
D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/textures/CCTextureCache.h:191:5: error: ‘mutex’ in namespace ‘std’ does not name a type
D:/DevelopersTuts/DevResource/Libraries/C**/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android/…/…/…/…/cocos2dx/textures/CCTextureCache.h:192:5: error: ‘condition_variable’ in namespace ‘std’ does not name a type
cc1plus.exe: warning: unrecognized command line option “-Wno-literal-suffix” [enabled by default]
/cygdrive/d/Downloads/Development/Tools/ADT2k12/ndk/build/core/build-binary.mk:269: recipe for target `obj/local/armeabi/objs-debug/testcpp_shared/testcpp/main.o’ failed
make: * [obj/local/armeabi/objs-debug/testcpp_shared/testcpp/main.o] Error 1
make: Leaving directory `/cygdrive/d/DevelopersTuts/DevResource/Libraries/C++/cocos2d-x-3.0alpha0/cocos2d-x-3.0alpha0/samples/cpp/testcpp/proj.android’


#2

I have the same problem too


#3

I fixed it by changing ndk version from android-ndk-r8d to android-ndk-r9


#4

u can refer my blog : http://blog.csdn.net/boyxiaolong/article/details/14224715


#5

your ndk version? r8d or r9d~ I used r8d and meet the same problem~:( I am downloading ndk r9d~