关于cocos2d-x3.2在NDK10下编译出现的错误的解决方法

最近cocos2d-x发布了最新的版本3.2,如果你是在NDK10下编译这个版本,会出现一些错误。如下:

   1. /Users/minggo/SourceCode/cocos2d-x/build/../cocos/./3d/CCBundleReader.cpp:94:23: error:
      return type of out-of-line definition of 'cocos2d::BundleReader::tell'
      differs from that in the declaration
      ssize_t BundleReader::tell()
   2. /Users/minggo/SourceCode/cocos2d-x/build/../cocos/./3d/CCBundleReader.h:90:14: note:
       previous declaration is here
      long int tell();

这是为什么呢?这是NDK10自身的BUG导致的。关于以上错误,cocos2d-x官方推荐用NDK9来编译cocos2d-x3.2,并且把错误通知给了谷歌。这就应该在下一版本的NDK下可以编译cocos2d-x3.2了。

   NDK9下载地址:

   windows: http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86_64.zip

   linux: http://dl.google.com/android/ndk/android-ndk-r9-linux-x86.tar.bz2
   mac os x: https://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2

如果你想更详细了解这个错误,可以浏览一下cocos2d-x官方给出的解析。地址:http://cocos2d-x.org/news/307

  


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值