Recent

Author Topic: BGRABitmap 9.9.2 compile error  (Read 1935 times)

tr_escape

  • Sr. Member
  • ****
  • Posts: 411
  • sector name toys | respect to spectre
    • Github:
BGRABitmap 9.9.2 compile error
« on: January 08, 2019, 03:00:12 pm »
Hello bgrabitmap team,


I tried to compile bgrabitmap 9.9.2 with "Lazarus 2.1.0 r60032M FPC 3.3.1 i386-win32-win32/win64" but it is giving that message:

bgratextbidi.pas(229,67) Error: Only static methods and static variables can be referenced through an object type

What should I do?

Main aim is using pascalscada but pascal scada is related with bgracontrols/bitmap

Thanks a lot

lainz

  • Hero Member
  • *****
  • Posts: 3965
  • Leandro Diaz
Re: BGRABitmap 9.9.2 compile error
« Reply #1 on: January 09, 2019, 06:32:59 pm »
https://lainz.github.io/ - My Website :)
https://lazpaint.github.io/ -  Download LazPaint

jeffrey1820

  • Newbie
  • Posts: 2
Re: BGRABitmap 9.9.2 compile error
« Reply #2 on: January 09, 2019, 06:37:52 pm »
Just define the relevant methods as static...

geometrytypes.inc, line ~100
Code: [Select]
    class function EmptyBox: TAffineBox; static;
    class function AffineBox(ATopLeft, ATopRight, ABottomLeft: TPointF): TAffineBox; static;
    class function AffineBox(ARectF: TRectF): TAffineBox; static;

circular

  • Hero Member
  • *****
  • Posts: 3670
    • Personal webpage
Re: BGRABitmap 9.9.2 compile error
« Reply #3 on: January 10, 2019, 04:40:54 pm »
Ok I added the static keyword as suggested on the dev branch.

Does it solve the problem?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3965
  • Leandro Diaz
Re: BGRABitmap 9.9.2 compile error
« Reply #4 on: January 10, 2019, 08:17:24 pm »
Yes, it's solved. Thanks.
https://lainz.github.io/ - My Website :)
https://lazpaint.github.io/ -  Download LazPaint

circular

  • Hero Member
  • *****
  • Posts: 3670
    • Personal webpage
Re: BGRABitmap 9.9.2 compile error
« Reply #5 on: January 10, 2019, 10:17:48 pm »
Ok thanks
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018