【发布时间】:2013-10-21 12:50:18
【问题描述】:
我无法为 Android 构建应用程序。我能够使用 XE5 的 Beta 和试用版成功构建并部署到 Android 设备。由于使用 XE5 专业版,我无法为 android 设备构建。我确实让 iOS 操作系统正常工作。我的 SDK 和 NDK 路径设置正确。
错误日志如下:
[DCC Error] E2597 C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.7\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lrtlhelper
C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.7\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lcompiler_rt
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit8__mallocEj+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit10GetTlsSizeEv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit13InitThreadTLSEv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit12FinalizationEv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
C:\Builds\TP\runtime\rtl\sys/System.pas:16291: error: undefined reference to '_Unwind_Resume'
C:\Builds\TP\runtime\rtl\sys/System.pas:15440: error: undefined reference to '_Unwind_Resume'
C:\Builds\TP\runtime\rtl\sys/System.pas:15501: error: undefined reference to '_Unwind_Resume'
C:\Builds\TP\runtime\rtl\sys/System.pas:15538: error: undefined reference to '_Unwind_Resume'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o(.ARM.exidx.text.__stub_in8s__ZN6System17TInterfacedObject14QueryInterfaceE5_GUIDPv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o(.ARM.exidx.text.__stub_in12v0__ZN6System16TContainedObject14QueryInterfaceE5_GUIDPv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o(.ARM.exidx.text.__stub_in16s__ZN6System17TInterfacedObject14QueryInterfaceE5_GUIDPv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System8TMarshal17AllocStringAsAnsiEPDst+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
C:\Builds\TP\runtime\rtl\sys/System.pas:6810: error: undefined reference to '__aeabi_ul2d'
C:\Builds\TP\runtime\rtl\sys/System.pas:6808: error: undefined reference to '__aeabi_ul2d'
C:\Builds\TP\runtime\rtl\sys/System.pas:7003: error: undefined reference to '__aeabi_ul2d'
C:\Builds\TP\runtime\rtl\sys/System.pas:7001: error: undefined reference to '__aeabi_ul2d'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::_Unwind_RaiseException(_Unwind_Exception&): error: undefined reference to '_Unwind_RaiseException'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fegetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'math_fegetexceptflag'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fesetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'math_fesetexceptflag'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fegetround(): error: undefined reference to 'math_fegetround'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fesetround(unsigned int): error: undefined reference to 'math_fesetround'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fegetenv(void*): error: undefined reference to 'math_fegetenv'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.o:System:function System::fesetenv(void*): error: undefined reference to 'math_fesetenv'
C:\Builds\TP\runtime\rtl\sys/System.pas:7396: error: undefined reference to '__aeabi_l2d'
C:\Builds\TP\runtime\rtl\sys/System.pas:9620: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\TP\runtime\rtl\sys/System.pas:9621: error: undefined reference to '__moddi3'
C:\Builds\TP\runtime\rtl\sys/System.pas:17091: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\TP\runtime\rtl\sys/System.pas:17095: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\TP\runtime\rtl\sys/System.pas:17119: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\TP\runtime\rtl\sys/System.pas:33067: error: undefined reference to '__umoddi3'
C:\Builds\TP\runtime\rtl\sys/System.pas:33069: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\TP\runtime\rtl\sys/System.pas:33479: error: undefined reference to '__aeabi_idiv'
C:\Builds\TP\runtime\rtl\sys/System.Types.pas:3352: error: undefined reference to '__aeabi_l2f'
C:\Builds\TP\runtime\rtl\sys/System.Types.pas:3352: error: undefined reference to '__aeabi_l2f'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:29045: error: undefined reference to '__aeabi_l2f'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:29050: error: undefined reference to '__aeabi_l2d'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:29055: error: undefined reference to '__aeabi_l2d'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:29105: error: undefined reference to '__aeabi_ul2f'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:5045: error: undefined reference to '__aeabi_idiv'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:5046: error: undefined reference to '__modsi3'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:7797: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:16553: error: undefined reference to '__moddi3'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:16655: error: undefined reference to '__aeabi_l2d'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:17550: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:18214: error: undefined reference to '__moddi3'
C:\Builds\TP\runtime\rtl\sys/System.SysUtils.pas:18334: error: undefined reference to '__moddi3'
C:\Builds\TP\runtime\rtl\sys/System.VarUtils.pas:805: error: undefined reference to '__aeabi_l2f'
C:\Builds\TP\runtime\rtl\sys/System.VarUtils.pas:1164: error: undefined reference to '__aeabi_ul2f'
C:\Builds\TP\runtime\rtl\sys/System.Variants.pas:2438: error: undefined reference to '__aeabi_ul2f'
C:\Builds\TP\runtime\rtl\common/System.Rtti.pas:2725: error: undefined reference to '__aeabi_idiv'
C:\Builds\TP\runtime\rtl\common/System.Rtti.pas:2357: error: undefined reference to '__aeabi_idiv'
C:\Builds\TP\runtime\rtl\common/System.Rtti.pas:3240: error: undefined reference to '__aeabi_ul2f'
C:\Builds\TP\runtime\rtl\common/System.Rtti.pas:6946: error: undefined reference to 'rtti_raw_invoke'
C:\Builds\TP\runtime\rtl\common/System.Rtti.pas:9229: error: undefined reference to 'rtti_raw_intercept'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.Rtti.o:System.Rtti:function System::Rtti::AllocFirstStageIntercept(void*, void*, int): error: undefined reference to 'allocate_first_stage_intercept'
c:\program files (x86)\embarcadero\rad studio\12.0\lib\Android\debug\System.Rtti.o:System.Rtti:function System::Rtti::FreeIntercept(System::Rtti::TMethodImplementation::TFirstStageIntercept*): error: undefined reference to 'free_first_stage_intercept'
C:\Builds\TP\runtime\rtl\common/System.Classes.pas:14741: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\TP\runtime\fmx/FMX.Effects.pas:863: error: undefined reference to '__modsi3'
C:\Builds\TP\runtime\fmx/FMX.Effects.pas:890: error: undefined reference to '__modsi3'
C:\Builds\TP\runtime\fmx/FMX.Effects.pas:891: error: undefined reference to '__modsi3'
C:\Builds\TP\runtime\rtl\android/Androidapi.JNIBridge.pas:365: error: undefined reference to 'DispatchToImport'
【问题讨论】:
-
您在安装前已完全卸载?安装前需要在磁盘上保留大约 60GB 的可用空间,这让我感到很痛苦。
-
这是与安装相关的问题。 Embarcadero 支持将是提出这个问题的合适场所,因为他们有关于如何处理安装问题的细节。您可以在support.embarcadero.com 上为安装相关问题打开免费支持案例
标签: android delphi delphi-xe5 firemonkey-fm3