gpt4 book ai didi

android - 汇编程序消息 : Branch out of range

转载 作者:行者123 更新时间:2023-12-02 10:25:54 25 4
gpt4 key购买 nike

我正在使用 C++ 在 cocos2d-x 上开发游戏。
我在 xCode 中开发了整个代码。编译,在iphone和ipad上运行,按预期运行。

但是在windows 7 OS中为android编译代码时,使用Cygwin(64位)..我遇到了以下代码..

$ ./build_native.sh
NDK_ROOT = D:\android-ndk-r9
COCOS2DX_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/../../..
APP_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/..
APP_ANDROID_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android
Using prebuilt externals

make: Entering directory '/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android'
Android NDK: WARNING:/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/../../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
Compile++ thumb : cocos2dcpp_shared <= AppDelegate.cpp

Compile++ thumb : cocos2dcpp_shared <= PlayerSelection.cpp

jni/../../Classes/PlayerSelection.cpp: In member function 'void PlayerSelection::update()':
jni/../../Classes/PlayerSelection.cpp:1511:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Compile++ thumb : cocos2dcpp_shared <= GameScene.cpp
C:\cygwin64\tmp\ccdF8Sjo.s: Assembler messages:
C:\cygwin64\tmp\ccdF8Sjo.s:12180: Error: branch out of range
/cygdrive/d/android-ndk-r9/build/core/build-binary.mk:348: recipe for target 'obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/GameScene.o' failed
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/GameScene.o] Error 1
make: Leaving directory '/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android'

在上面的命令行输出中,问题是:
Compile++ thumb  : cocos2dcpp_shared <= GameScene.cpp
C:\cygwin64\tmp\ccdF8Sjo.s: Assembler messages:
C:\cygwin64\tmp\ccdF8Sjo.s:12180: Error: branch out of range

我试过以下链接:

Why does branching occur in assembly code while comparing for a number to be in range?

https://in.answers.yahoo.com/question/index?qid=20100603163224AAAGX7J

branch out of range compile error

以上引用资料都没有帮助我编译代码。

最佳答案

通过一个一个地检查每个函数与我的代码作斗争后,我发现问题在于嵌套的开关盒,如果有人碰巧遇到这个问题,这可能是它..
并感谢 LearnCocos2D 的关注。

关于android - 汇编程序消息 : Branch out of range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23512087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com