cocos2d-xのテストプロジェクトがandroid-ndk-r10でビルドエラーになる問題の対処
ビルドエラーに対処したメモ。 cocos2d-xのdownloadからダウンロードしたcocos2d-xの3.2パッケージをダウンロードして ドキュメント(http://www.cocos2d-x.org/docs/manual/framework/native/v3/getting-started/how-to-run-cpp-tests-on-android/en)どおりにサンプルプロジェクトをビルドしようとするとエラーになる。 2d-x/build error: return type of out-of-line definition of ‘cocos2d::BundleReader::tell’ differs from that in the declaration ssize_t BundleReader::tell() …のような感じのエラーになってしまう。対処方法は https://github.com/cocos2d/cocos2d-x/pull/7526/files ここのパッチを当てれば良い。 未確認だがandroid-ndk-r9では出ない模様。