android – Cocos2dx构建问题

android – Cocos2dx构建问题,第1张

概述我在Mac OSx El Captain上有最新版本的Cocos2dx,它是v3.12和最新的ndk r12b. 我尝试了无数次为 android平台构建我的项目,并且我继续在“R_ARM_THM_CALL”中出现“重定位溢出”错误. 并且库不会最终链接. 我该如何解决这个错误?我是否需要以前版本的cocos2dx或ndk? 请帮忙. 这是整个错误消息: /Users/moshe/develope 我在Mac OSx El Captain上有最新版本的Cocos2dx,它是v3.12和最新的ndk r12b.
我尝试了无数次为 android平台构建我的项目,并且我继续在“R_ARM_THM_CALL”中出现“重定位溢出”错误.
并且库不会最终链接.
我该如何解决这个错误?我是否需要以前版本的cocos2dx或ndk?

请帮忙.

这是整个错误消息:

/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCNode.cpp:903: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/AndroID/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/regex.h:2109: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/AndroID/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/regex.h:2109: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/AndroID/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/regex.h:515: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/AndroID/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/regex.h:515: error: relocation overflow in R_ARM_THM_CALL[x86] Sharedlibrary  : libmyGame.so/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./platform/CCGLVIEw.cpp:44: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/CCAffinetransform.cpp:73: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/CCAffinetransform.cpp:74: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Mat4.cpp:968: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Mat4.cpp:974: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Quaternion.cpp:26: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:306: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:307: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:308: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:309: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:310: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./math/Vec4.cpp:311: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCGLProgramState.cpp:46: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTextureCache.cpp:634: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCFrameBuffer.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCCamera.cpp:42: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/AndroID/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/iostream:74: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/external/bullet/linearMath/btQuickprof.cpp:21: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/external/bullet/linearMath/btQuickprof.cpp:433: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/external/bullet/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp:623: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/toolchain/gcc/gcc-4.9/libstdc++-v3/libsupc++/eh_globals.cc:117: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/arm-linux-androIDeabi/bits/gthr-default.h:778: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/ext/concurrence.h:219: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/toolchain/gcc/gcc-4.9/libstdc++-v3/src/c++11/system_error.cc:65: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/toolchain/gcc/gcc-4.9/libstdc++-v3/src/c++11/system_error.cc:66: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/ext/atomicity.h:49: error: relocation overflow in R_ARM_THM_CALL/Volumes/AndroID/buildbot/src/androID/ndk-r12-release/out/build/tmp/build-65800/build-gnustl/static-armeabij4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:33: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:33: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:33: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:33: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:34: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:34: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:34: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:34: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./base/CCValue.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:63: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:63: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:64: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:64: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:65: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:65: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:66: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:66: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:67: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:67: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:68: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:68: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:69: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:69: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:70: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:70: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:71: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:71: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:74: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:74: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:75: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:75: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:76: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:76: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:77: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:77: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:81: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:81: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:85: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:85: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:97: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:97: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:102: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:102: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:107: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:107: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCTexture2D.cpp:116: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontAtlasCache.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontAtlasCache.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontAtlasCache.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontAtlasCache.cpp:36: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontFreeType.cpp:50: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontFreeType.cpp:50: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontFreeType.cpp:50: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./2d/CCFontFreeType.cpp:50: error: relocation overflow in R_ARM_THM_CALL/Users/moshe/developer/CrossplatformDev/com.game.mathymaddy/proj.androID/../cocos2d/cocos/./renderer/CCVertexAttribBinding.cpp:46: error: relocation overflow in R_ARM_THM_CALLclang++: error: linker command Failed with exit code 1 (use -v to see invocation)
解决方法 试试NDK r11c:

http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip

还要确保AndroID.mk中包含以下行:

LOCAL_ARM_MODE:=手臂

这对我有用(我和NDK r12b也有同样的错误).希望这可以帮助!

总结

以上是内存溢出为你收集整理的android – Cocos2dx构建问题全部内容,希望文章能够帮你解决android – Cocos2dx构建问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1128104.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存