您的位置:首页 > 移动开发 > Cocos引擎

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

2014-07-25 17:33 531 查看
最近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

  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐