android编译 cryptopp_MAC NDK 编译 Cocos2dx 问题

1.NDK_ROOT :"please define NDK_ROOT"

解决:

在build_native.sh 中添加路径

NDK_ROOT="/Users/pc/Documents/android/android-ndk-r9d"

2.加密库cryptopp编译不过,错误fd_set 不认识

解决:http://morgwai.pl/ndkTutorial/

The last problem is that Crypto++ seems to rely on implicit inclusion of header file containing definition of fd_set. This is not the case when using STLport so you need to add the following preprocessor command somewhere in wait.h file:

#include

3.CCCommon.cpp 文件报错:

/cocos2dx/platform/android/CCCommon.cpp:54:77: error: format not a string literal and no format arguments [-Werror=format-security]

some warnings being treated as errors

解决:

修改自己项目 proj.android\jni\Application.mk (不是Android.mk)文件,在最后加上

APP_CPPFLAGS += -Wno-error=format-security 就可以了。

4.libluajit.a(lib_base.o):lib_base.c:function lj_cf_print: error: undefined reference to '__swbuf'

We suggest you not to use NDK r10. Please use NDK r9d instead.

NDK r9d url

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值