ビルドエラーに対処したメモ。
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 [14-08-26 01:08:50]
[2616]
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では出ない模様。
0 件のコメント:
コメントを投稿