Recent

Author Topic: New version of BGRABitmap  (Read 242180 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 2514
    • StrumPract is the musicians best friend
Re: New version of BGRABitmap
« Reply #615 on: October 11, 2021, 07:48:47 pm »
Hi

Just loaded fresh fpc & Laz both trunk versions on MacOS, but getting error installing 11.4Compile package

BGRABitmapPack 11.4: Exit code 1, Errors: 3, Hints: 4
Hint: Start of reading config file /Users/josh/Documents/LazTrunkUse/fpc/bin/x86_64-darwin/fpc.cfg
Hint: End of reading config file /Users/josh/Documents/LazTrunkUse/fpc/bin/x86_64-darwin/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-9412-g068f781c7a-dirty [2021/10/11] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Darwin for x86_64

Hello Josh.

Did you try with fpc 3.2.2 (or 3.2.0) with same result?

Fe;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs

josh

  • Hero Member
  • *****
  • Posts: 833
Re: New version of BGRABitmap
« Reply #616 on: October 15, 2021, 09:21:59 am »
Hi

If I change debug options for BGRABitmap so that RangeCheck is enabled, it then compiles ok.

So once that succeded I attempted install of bgracontrols 7.3, this though generated an error comparemethod not found.
this is down to it being moved from lazutils to lazmethodlist, as the function is becoming deprecated.

If I add this unit into BCgamegrid uses section, this then compiles ok. Not an ideal solution, as is only valid for latest fpc/laz trunk.




« Last Edit: October 16, 2021, 11:28:57 am by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

circular

  • Hero Member
  • *****
  • Posts: 3747
    • Personal webpage
Re: New version of BGRABitmap
« Reply #617 on: October 16, 2021, 08:20:18 am »
Maybe this can be done with a compiler directive.
Code: Pascal  [Select][+][-]
  1. uses ... {$IF FPC_FULLVERSION >= 30202}, lazmethodlist{$ENDIF}
Conscience is the debugger of the mind

josh

  • Hero Member
  • *****
  • Posts: 833
Re: New version of BGRABitmap
« Reply #618 on: October 16, 2021, 10:51:34 am »
Hi Circular

I think that approach could resolve the uses section.

However as the unit is part of lazarus, should the check be directed towards the lazarus version not FPC?

Using the laz version check it could also be used to use the replacement function SameMethod as defined in lazmethodlist in
BCGameGrid.

Any ideas as to why BGRABitmap only compiling on fpc trunk when I set the BGRABitmap package options to enable rangechecking.?
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

lainz

  • Hero Member
  • *****
  • Posts: 3874
Re: New version of BGRABitmap
« Reply #619 on: October 16, 2021, 08:45:25 pm »
Hi, please try again with dev bgracontrols. I've removed the dependency on comparemethod.

Fred vS

  • Hero Member
  • *****
  • Posts: 2514
    • StrumPract is the musicians best friend
Re: New version of BGRABitmap
« Reply #620 on: October 16, 2021, 09:32:00 pm »
Hi Circular

I think that approach could resolve the uses section.

However as the unit is part of lazarus, should the check be directed towards the lazarus version not FPC?

Using the laz version check it could also be used to use the replacement function SameMethod as defined in lazmethodlist in
BCGameGrid.

Any ideas as to why BGRABitmap only compiling on fpc trunk when I set the BGRABitmap package options to enable rangechecking.?

Hello.

Maybe add the Lazarus dependencies according to current BGRABitmap in source?
https://github.com/bgrabitmap/bgrabitmap/issues/139
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs

circular

  • Hero Member
  • *****
  • Posts: 3747
    • Personal webpage
Re: New version of BGRABitmap
« Reply #621 on: October 17, 2021, 08:39:16 am »
However as the unit is part of lazarus, should the check be directed towards the lazarus version not FPC?
Indeed.

Quote
Any ideas as to why BGRABitmap only compiling on fpc trunk when I set the BGRABitmap package options to enable rangechecking.?
Looks like a compiler bug to me.

Quote
Hi, please try again with dev bgracontrols. I've removed the dependency on comparemethod.
Yeah that's another way. Even better as the original function is deprecated.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018