{问题2}关于cocos2dx 3.3rc0版本Android工程编译的问题

好吧 问题1我默默的解决了,那么问题2该来了。
下面请看问题

Android NDK: WARNING:jni/Android.mk:cocos2dcpp_shared: non-system libraries in linker flags: -lc++_static    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module  
```


用cocos-console生成的android mk文件里有这么一行

LOCAL_LDLIBS += -L$(call host-path,$(NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/$(TARGET_ARCH_ABI)) -lc++_static
```


c++_static库在哪里啊~~ 求助~~~

我也是新手,瞎提供点思路供你参考哈。

找到Android.mk文件中的

(call import-add-path,(COCOS_X_ROOT))
(call import-add-path,(COCOS_X_ROOT)/external)
(call import-add-path,(COCOS_X_ROOT)/cocos)

后面的$(COCOS_X_ROOT)是我自己改的,我是根据我的环境而调整的(默认的不太对)。
编译的错误主要就是环境变量设置的缺失,或这几个mk文件中的路径不对。

看看有没有帮助。

你这个回答貌似 符合 我先前问题1。。。。。。。:12: