Print Page | Close Window

Error Compile target Android

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL / FMX Cryptography Pack
Forum Discription:
Printed Date: 21 Jan 2020 at 8:56am

Topic: Error Compile target Android
Posted By: megat kurniawan
Subject: Error Compile target Android
Date Posted: 18 Nov 2018 at 9:43am
after installing and making a project with the following code, targeting the compilation of Android phones. but it contains errors like the following. Please help.

procedure TFrmTest.Button1Click(Sender: TObject);
  AES: TAESEncryption;
  AES := TAESEncryption.Create;
  AES.AType := atOFB;
  AES.KeyLength := kl256;
  AES.OutputFormat := hexa;
  AES.Key := 'F6D722D90D99B601AF6C86EA1E426775';
  Edit1.Text := AES.Decrypt('AA80D424D2501B71E0BC5BD899DDEB2A2CE47EA7A5838BE6DCB16925B8A856C5');

error message:
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\19.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lTMSCPLib
  F:\Project\AesTest\Client\Android\Debug\MiscObj.o:MiscObj:function Miscobj::CharToHexa(unsigned char*, int, unsigned char*): error: undefined reference to 'CharToHexa'...etc....

i have follow this :

but still not fix.

thank you

Posted By: Marion Candau
Date Posted: 19 Nov 2018 at 8:42am

The path you put in the search path field is not the right one. You have to put the path to "libAndroid" folder of your TMS Cryptography Pack installation folder. 

Best regards,

Posted By: megat kurniawan
Date Posted: 19 Nov 2018 at 12:02pm

I don't see the libAndroid folder, it turns out I chose the wrong path,

Thanks you,

Print Page | Close Window