2013-10-21 42 views
0

我无法为Android构建应用程序。我能够使用测试版以及XE5的试用版成功构建和部署到Android设备。由于使用XE5专业版,我无法构建Android设备。我没有得到iOS操作系统。我的SDK和NDK路径设置正确。德尔福 - 不能为Android构建

错误日志如下:

[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' 
+0

您在安装之前做过完整的卸载吗?在安装之前,我需要在磁盘上拥有大约60GB的可用空间。 –

+1

这是一个安装相关的问题。英巴卡迪诺公司的支持将是提出这个问题的适当场所,因为他们有关于如何处理安装问题的具体细节。您可以在http://support.embarcadero.com上打开与安装相关的免费支持案例 –

回答

1

我有同样的问题,并按照此Embarcadero公司论坛步骤固定我的问题: https://forums.embarcadero.com/message.jspa?messageID=676070

确保$(BDSLIB)\ $(PLATFORM)\ Release出现在Android应用程序的库路径 (Tools-Options-> Delphi-> Library paths and selected platform = Android)中。