honyeung lau wrote:
I read the code, and find out my ndk lack of 4.7 headers.then it works ok,except generating bindings for cocos2dx_studio. it prints out ‘cast from pointer to smaller type ’uintptr_t’’(rapidjson.h)
finaly, I comment that line, all bindings working fine.
Yes, the ndk r9c has never offer gcc 4.7 headers, but the ndk r9b contains, so you can download it from goolge, etc: http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86\_64.tar.bz2
On the other hand the ndk-r9c offers a 4.8 headers, but the 4.8 headers is not work correctly with clang 3.4, and the latest generator use a prebuilt libclang3.4, so, the ndk-r9b with 4.7 headers is the best choice till now.