[Lazarus] Cross-compiling for Raspberry Pi2

Michael Van Canneyt michael at freepascal.org
Thu Sep 24 09:44:40 CEST 2015



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).

Michael.




More information about the Lazarus mailing list