* * *

Author Topic: GetTickCount disappeared on Raspberry PI  (Read 2991 times)

hakelm

  • Jr. Member
  • **
  • Posts: 97
GetTickCount disappeared on Raspberry PI
« on: December 10, 2017, 12:38:37 pm »
On my Linux desktop the little program below compiles without a glitch. When trying to compile it on Raspberry Pi with Free Pascal Compiler version 2.6.0-9+rpi1+wsf1 [2015/04/28] for arm
I get Error: Identifier not found "GetTickCount64".
Looking at sysutilh.inc that contains GetTickCount on my desktop and the one on my Pi I see that they are totally different. Searching for files containing  "GetTickCount" on the Pi doesn't give any promising candidates for a good source.
What can I do?
Thanks in advance for any tip.
H

program Project1;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes,sysutils
  { you can add units after this };

{$R *.res}

begin
  writeln(GetTickCount64);
end.

Thaddy

  • Hero Member
  • *****
  • Posts: 6876
Re: GetTickCount disappeared on Raspberry PI
« Reply #1 on: December 10, 2017, 12:45:55 pm »
It simply works here after disabling the res entry:
Code: Pascal  [Select]
  1. program Project1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. uses
  6.   {$IFDEF UNIX}{$IFDEF UseCThreads}
  7.   cthreads,
  8.   {$ENDIF}{$ENDIF}
  9.   Classes,sysutils
  10.   { you can add units after this };
  11.  
  12. // {$R *.res} //disable this
  13.  
  14. begin
  15.   writeln(GetTickCount64);
  16. end.

BTW: You are using a really old version: upgrade to Stretch and you have a more recent FPC/Lazarus.
« Last Edit: December 10, 2017, 01:08:24 pm by Thaddy »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6533
Re: GetTickCount disappeared on Raspberry PI
« Reply #2 on: December 10, 2017, 01:07:59 pm »
2.6.0 is awfully old, probably before tickcount64 was standarized.

2.6.2,2.6.4,3.0.0,3.0.2, and 3.0.4 came all after it, and FPC is not known for its speedy updates.

Thaddy

  • Hero Member
  • *****
  • Posts: 6876
Re: GetTickCount disappeared on Raspberry PI
« Reply #3 on: December 10, 2017, 01:17:42 pm »
Marco, two days ago I was able to download the 3.0.4 tar for eabihf raspberry pi. When I try to retrieve the link today it is gone. Rather annoying.
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

hakelm

  • Jr. Member
  • **
  • Posts: 97
Re: GetTickCount disappeared on Raspberry PI
« Reply #4 on: December 10, 2017, 01:43:45 pm »
Thanks
I will upgrade and see what happens.
H

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6533
Re: GetTickCount disappeared on Raspberry PI
« Reply #5 on: December 10, 2017, 01:44:36 pm »
Marco, two days ago I was able to download the 3.0.4 tar for eabihf raspberry pi. When I try to retrieve the link today it is gone. Rather annoying.
(searching and interpreting vague info), ah, you mean via http. I fixed something, should be live tomorrow.

rvk

  • Hero Member
  • *****
  • Posts: 3461
Re: GetTickCount disappeared on Raspberry PI
« Reply #6 on: December 10, 2017, 02:15:16 pm »
I changed my script for installation of Laz/FPC trunk a few days ago and needed 3.0.4 for compilation of FPC.

I took the one from ftp which is still there:
ftp://ftp.freepascal.org/pub/fpc/dist/3.0.4/arm-linux/
Code: Pascal  [Select]
  1. wget -O compiler3.tar ftp://ftp.freepascal.org/pub/fpc/dist/3.0.4/arm-linux/fpc-3.0.4.arm-linux-eabihf-raspberry.tar

Even the stack.nl mirror for The Netherlands has it:
ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.4/arm-linux/

hakelm

  • Jr. Member
  • **
  • Posts: 97
Re: GetTickCount disappeared on Raspberry PI
« Reply #7 on: December 10, 2017, 04:01:58 pm »
Free Pascal Compiler version 3.0.4 [2017/10/11] for arm
did the trick.
Thanks
H

Thaddy

  • Hero Member
  • *****
  • Posts: 6876
Re: GetTickCount disappeared on Raspberry PI
« Reply #8 on: December 10, 2017, 04:15:19 pm »
Free Pascal Compiler version 3.0.4 [2017/10/11] for arm
did the trick.
Thanks
H

Also, Marco, TNX!
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus