Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Can't compile Indy r5414 for iOS


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Apr 24, 2017 12:08 PM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
Stefan Westner

Posts: 36
Registered: 10/14/99
Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 21, 2017 3:56 AM
Hello,

when I try to compile the Indy r5414 for iOS under 10.2 I get

[DCC Error] IdGlobal.pas(5490): E1030 Invalid compiler directive: 'message'

in

{$IFDEF USE_BASEUNIX}
fpgettimeofday(@tv,nil);
{$ELSE}
{$IFDEF KYLIXCOMPAT}
gettimeofday(tv, nil);
{$ELSE}
{$message error gettimeofday is not called on this platform!}
FillChar(tv, sizeof(tv), 0);
{$ENDIF}
{$ENDIF}

Compiling for Win32, Win64, Android and OSX works fine.

What is the problem?

Greetings

Stefan
Remy Lebeau (Te...


Posts: 8,938
Registered: 12/23/01
Re: Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 21, 2017 9:51 AM   in response to: Stefan Westner in response to: Stefan Westner
Stefan wrote:

when I try to compile the Indy r5414 for iOS under 10.2 I get

[DCC Error] IdGlobal.pas(5490): E1030 Invalid compiler directive:
'message'

I find it hard to believe that Embarcadero would not have implemented the
{$MESSAGE} directive in the iOS compiler when it is implemented in all of
the other Delphi compilers.

But, that being said, I have checked in some tweaks to Indy to re-order its
platform IFDEFs.

--
Remy Lebeau (TeamB)
Stefan Westner

Posts: 36
Registered: 10/14/99
Re: Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 22, 2017 12:31 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Now it works and compiles for all plattforms (Linux it did not test). Thanks, Remy.

BTW, before checking something in did you not run any tests or simply try to compile the projects? I just wonder...
Remy Lebeau (Te...


Posts: 8,938
Registered: 12/23/01
Re: Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 10:44 AM   in response to: Stefan Westner in response to: Stefan Westner
Stefan wrote:

Now it works and compiles for all plattforms (Linux it did not test).
Thanks, Remy.

BTW, before checking something in did you not run any tests or
simply try to compile the projects? I just wonder...

I don't currently have a setup to compile/test Indy for non-Windows platforms.

--
Remy Lebeau (TeamB)
Stefan Westner

Posts: 36
Registered: 10/14/99
Re: Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 11:46 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
And who does the development for non-windows-plattforms than? Embarcadero?

Remy Lebeau (TeamB) wrote:
Stefan wrote:

Now it works and compiles for all plattforms (Linux it did not test).
Thanks, Remy.

BTW, before checking something in did you not run any tests or
simply try to compile the projects? I just wonder...

I don't currently have a setup to compile/test Indy for non-Windows platforms.

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 8,938
Registered: 12/23/01
Re: Can't compile Indy r5414 for iOS  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 12:08 PM   in response to: Stefan Westner in response to: Stefan Westner
Stefan wrote:

And who does the development for non-windows-plattforms
than? Embarcadero?

Embarcadero contributes an occasional patch, if they encounter any problems,
like any other end user would. But I am the primary/sole developer of Indy,
including cross-platform development. I just don't TEST cross-platform code
myself, I let the community help me with that as needed.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02