2013-10-21 43 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)中。