cocos2dx v3.2 编译出错

使用v3.2创建一个新的空项目工程,编译安卓时,出错了,有大神遇到吗?
D:\Cosco2dx\Project\Game>cocos run -p android
Running command: compile
Building mode: debug
building native
NDK build mode: debug
The Selected NDK toolchain version was 4.8 !
running: ‘D:\android\android-ndk-r10\ndk-build -C D:\Cosco2dx\Project\Game\proj.android -j1 NDK_MODU
LE_PATH=D:\Cosco2dx\Project\Game\proj.android…/cocos2d;D:\Cosco2dx\Project\Game\proj.android…/co
cos2d/cocos;D:\Cosco2dx\Project\Game\proj.android…/cocos2d/external NDK_DEBUG=1’
Android NDK: WARNING:D:\Cosco2dx\Project\Game\proj.android…/cocos2d/cocos/./Android.mk:cocos2dx_st
atic: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:D:\Cosco2dx\Project\Game\proj.android…/cocos2d/cocos/platform/android/Android
.mk:cocos2dxandroid_static: LOCAL_LDLIBS is always ignored for static libraries
make.exe: Entering directory D:/Cosco2dx/Project/Game/proj.android' Compile++ thumb: cocos2dx_static <= CCBundle3D.cpp Compile++ thumb: cocos2dx_static <= CCBundleReader.cpp D:\Cosco2dx\Project\Game\proj.android\../cocos2d/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() ^ D:\Cosco2dx\Project\Game\proj.android\../cocos2d/cocos/./3d/CCBundleReader.h:90:14: note: previous declaration is here long int tell(); ^ 1 error generated. make.exe: *** Error 1 make.exe: Leaving directory D:/Cosco2dx/Project/Game/proj.android’
Error running command, return code: 2
我使用v3.2前一个版本是v3.1.1,编译时没有遇到这个错误。
怎样解决这个错误???

找到文件CCBundleReader.h把90行的long int 改成ssize_t

你前面的环境是怎么设置的?我的也是3.2 但问题是android-20 cannot be found我看了有这个文件夹的

Compile++ thumb: cocos2dxandroid_static <= JniHelper.cpp
Compile++ thumb: cocos2dxandroid_static <= TouchesJni.cpp
StaticLibrary : libcocos2dandroid.a
Compile thumb : cpufeatures <= cpu-features.c
StaticLibrary : libcpufeatures.a
SharedLibrary : libcpp_tests.so
Install : libcpp_tests.so => libs/armeabi/libcpp_tests.so
make.exe: Leaving directory `E:/cocos2dx3.2needs/cocos2dx3.2/cocos2d-x-3.2/test
/cpp-tests/proj.android’
building apk
The directory “android-20” can’t be found in android SDK
E:\cocos2dx3.2needs\cocos2dx3.2\cocos2d-x-3.2\tests\cpp-tests>

android-20 在sdk里是有的

用这个命令试试cocos run -p android --ap 20,指定一下使用的API。

— Begin quote from ____

引用第1楼feir8510于2014-07-27 21:16发表的 :
找到文件CCBundleReader.h把90行的long int 改成ssize_t http://www.cocoachina.com/bbs/job.php?action=topost&tid=217003&pid=1014209

— End quote

感谢,用了你的方法,编译成功了!

— Begin quote from ____

引用第3楼pm121于2014-07-27 22:55发表的 :
Compile++ thumb: cocos2dxandroid_static <= JniHelper.cpp
Compile++ thumb: cocos2dxandroid_static <= TouchesJni.cpp
StaticLibrary : libcocos2dandroid.a
Compile thumb : cpufeatures <= cpu-features.c
StaticLibrary : libcpufeatures.a
http://www.cocoachina.com/bbs/job.php?action=topost&tid=217003&pid=1014253

— End quote

我用3.0rc版本编译的时候也出现了这个提示,求问有高手知道是啥原因吗,sdk目录下是有android-20文件夹的

我出现的问题跟你一样啊。你怎么解决的?

照你这样也是不行的。还是提示那个错误