Page 1 of 1

7.8.2 Error building an Android app

Posted: Mon Jun 01, 2020 11:07 am
by Malcolm
I have installed 7.8.2 OK for Delphi and Android 10.4

Seems OK for Win32, but when I build an Android app I am getting the following error messages from siComp:

dccaarm command line for "APad.dpr"
...
[DCC Error] siComp.pas(10986): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(10987): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(10998): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(12216): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(12226): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(12226): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(12237): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Error] siComp.pas(12237): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
[DCC Fatal Error] Main.pas(74): F2063 Could not compile used unit 'SiComp.pas'

(I get the same errors for 32-bit and 64-bit)

Malcolm

Re: 7.8.2 Error building an Android app

Posted: Mon Jun 01, 2020 12:05 pm
by Malcolm
It seems that your attempt to define SI_STR_START for DELPHIXE104 and SIMOBILEAPP has not worked .. or not for me.
Do I need to add a define? That would surprise me.

Re: 7.8.2 Error building an Android app

Posted: Mon Jun 01, 2020 12:35 pm
by Malcolm
OK. Adding the define DELPHIXE104 in my Project Options has solved it for me. :D

Is it your official requirement that a Delphi Android app needs both FMX and DELPHIXE104 to be added to the 'Conditional defines'?

Malcolm

Re: 7.8.2 Error building an Android app

Posted: Mon Jun 01, 2020 1:17 pm
by isiticov
Sorry for this, install script has used the wrong version of .INC file to include into the setup. We will fix this shortly, meantime you can just modify SI.INC file by adding:

Code: Select all

      {$IF (CompilerVersion >=34)} // Delphi XE10.4
      {$DEFINE DELPHIXE104} // return strings to be 1 based for mobile compilers
      {$IFEND}
after the code:

Code: Select all

	{$IF (CompilerVersion >=33)} // Delphi XE10.3
      {$DEFINE DELPHIXE103} // enabled Linux comps regs
      {$IFEND}
Or just re-download the setup from our web site in several minutes. :)

Re: 7.8.2 Error building an Android app

Posted: Mon Jun 01, 2020 3:59 pm
by Malcolm
Thanks Igor. That edit in SI.inc does the trick .. of course. :D