#1 2016-07-07 13:10:00

Peter Evans
Member
Registered: 2016-07-03
Posts: 32

Compiling for Android - SynZip

I get the error - Undeclared identifier : AnsiString.

This points to AnsiString in :-

  function CompressGZip(var DataRawByteString; Compress: boolean): AnsiString;

in the unit SynZip.

When I compile the Client with FireMonkey on Windows these are the DCU generated:-

mORMot
mORMotHttpClient
SynBidirSock
SynCommons
SynCrtSock
SynCrypto
SynLog
SynLZ
SynSSPlAuth
SynTests
SynWinSock
SynZip.

I have read 'ReadMe.txt'.
I note that there are these Include files available: 'Synopse.inc', 'SynCrossPlatform.inc'.

I note that mORMot pulls in SynZip.

I placed in the Android client under Project | Options the 'Conditional defines' NEXTGEN.

Is there another conditional defines I need to use?

Should I be replacing some units with some from the CrossPlatform folder?


Regards,
  Peter Evans

Offline

#2 2016-07-07 15:29:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Compiling for Android - SynZip

Those units are NOT compatible with the NextGen compiler, as stated by the doc.
Only the SynCrossPlatform* units can be used with it.

Offline

#3 2016-07-10 04:53:42

Peter Evans
Member
Registered: 2016-07-03
Posts: 32

Re: Compiling for Android - SynZip

Thank you for that information, I am looking into it.

Offline

Board footer

Powered by FluxBB