Print Page | Close Window

Error Compile target Android

Printed From: TMS Software
Category: VCL Components
Forum Name: VCL / FMX Cryptography Pack
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=12603
Printed Date: 24 Aug 2019 at 5:32pm


Topic: Error Compile target Android
Posted By: megat kurniawan
Subject: Error Compile target Android
Date Posted: 18 Nov 2018 at 9:43am
Hi,
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);
var
  AES: TAESEncryption;
begin
  AES := TAESEncryption.Create;
  AES.AType := atOFB;
  AES.KeyLength := kl256;
  AES.OutputFormat := hexa;
  AES.Key := 'F6D722D90D99B601AF6C86EA1E426775';
  Edit1.Text := AES.Decrypt('AA80D424D2501B71E0BC5BD899DDEB2A2CE47EA7A5838BE6DCB16925B8A856C5');
  AES.Free;
end;

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 : https://www.tmssoftware.com/Site/forum/forum_posts.asp?TID=11317&PID=41276&title=android-compile-error#41276

but still not fix.

thank you



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

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,
Marion


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