[Lazarus] Crosscompile to Android on arm?

Sven Barth pascaldragon at googlemail.com
Thu Jul 26 10:26:27 CEST 2018


Bo Berglund via Lazarus <lazarus at lists.lazarus-ide.org> schrieb am Do., 26.
Juli 2018, 10:02:

> Then I zipped up the sources and put them on the RPi3 box where I have
> FPC 3.0.4 and Lazarus 1.8.4.
> Opened the project in Lazarus and compiled and ran the program.
>

Did you run it from inside Lazarus? Thus with the debugger? That might help
you find the problem.


> So I have NOT edited the code for any Win/Linux differences for
> example, is that needed?
>

Maybe, depending on your program.

>
> For example in some console apps I have made also for both Windows and
> Raspbian I have this in the lpr file:
>   {$IFDEF UNIX}
>     {$IFDEF UseCThreads}
>     cthreads,
>     {$ENDIF}
>   {$ENDIF}
>
> If that is needed also here, where should it be put?
>

Also in the main project file in front of any other units. If your program
indeed uses threads (don't know whether Indy uses them) then you'll also
either need to add UseCThreads to the project defines or remove the "$ifdef
UseCThreads" so that the cthreads unit is always used on Unix-like systems.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180726/c581f615/attachment.html>


More information about the Lazarus mailing list