[Lazarus] Cross-compiling for Raspberry Pi2

Sven Barth pascaldragon at googlemail.com
Thu Sep 24 11:27:46 CEST 2015


Am 24.09.2015 09:44 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> On Thu, 24 Sep 2015, Sven Barth wrote:
>
>> Am 24.09.2015 05:24 schrieb "Bo Berglund" <bo.berglund at gmail.com>:
>>>
>>>
>>
>> Since you plan to port to Linux a word of caution: the "Windows" unit
>> doesn't exist there (and "GetTickCount" does neither), so you either need
>> to use platform specific functionality from the "BaseUnix" unit or cross
>> platform one from "SysUtils" and friends.
>
>
> GetTickCount(64) exists in sysutils.
>
>
>> You should maybe also tale a look into using conditional compilation
using
>> "$ifdef" and the defines the compiler already provides for you (e.g.
>> "windows", "linux", "unix", "cpui386", "cpuarm", etc.).
>> Note: in 3.0.0 TThread provides the cross platform class functions
>> TThread.GetTickCount and TThread.GetTickCount64.
>
>
> Which simply refer to sysutils.getTickCount(64).

Ehm right... I forgot about them despite having added them myself. :P Like
TThread.GetTickCount(64) however they are only available in 3.0.0 and newer
(they were added at the same time as the TThread ones).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150924/bfb512d3/attachment-0003.html>


More information about the Lazarus mailing list