Recent

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

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • 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
https://codeberg.org/fredvs

Josh

  • Hero Member
  • *****
  • Posts: 1270
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 »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • 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: 1270
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.?
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
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: 3158
    • 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
https://codeberg.org/fredvs

circular

  • Hero Member
  • *****
  • Posts: 4181
    • 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

Lulu

  • Full Member
  • ***
  • Posts: 226
Re: New version of BGRABitmap
« Reply #622 on: June 01, 2022, 02:20:45 pm »
Hi,
I try to port an application under Windows to Linux-gtk2 64b. The application use TBGLVirtualScreen and IBGLRenderedFont.
It work well under Windows, but when I compile and run it under Linux-gtk2-64bits an SIGSEGV exception occurs when accessing the font previously created.

I join a project to illustrate the problem. Please, can someone try it under GTK2 to know if there is also an sigsegv exception ?

Thanks you for your help.
wishing you a nice life

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: New version of BGRABitmap
« Reply #623 on: June 01, 2022, 04:25:57 pm »
@Lulu
I run your project on Ubuntu x64 w/o problem, it shows welcome message over the gray area.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: New version of BGRABitmap
« Reply #624 on: June 01, 2022, 07:44:53 pm »
Hi!

Project runs with Linux without a crash, but the "Hello World" is hard squeezed - see screenshot.

fpc 3.2.2 laz 2.2.2
gtk-2
Lin64 Suse Tumbleweed

Winni

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: New version of BGRABitmap
« Reply #625 on: June 01, 2022, 08:22:38 pm »
@Lulu: I suggest to provide a font name, at least "sans" for sans serif or "serif". Ideally a font name you know exists.
Conscience is the debugger of the mind

Lulu

  • Full Member
  • ***
  • Posts: 226
Re: New version of BGRABitmap
« Reply #626 on: June 02, 2022, 09:07:44 am »
AlexTP, Winni, thanks for testing
@Circular, yes it work better with a font name, without exception, thanks !
wishing you a nice life

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: New version of BGRABitmap
« Reply #627 on: June 02, 2022, 07:25:56 pm »
You're welcome  :)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: New version of BGRABitmap
« Reply #628 on: June 03, 2022, 07:21:55 am »
New version (11.5) of BGRABitmap:
- adapted dependency for fpGui and NoGui for latest Lazarus 2.2
- support for AVIF format (note that the AVIF library is experimental and may be incompatible in the future, latest supported version is 0.10.1)
- better dynamic linking (for libwebp and libavif on Linux and MacOS)
- automatic handling of transparent TBitmap and more explicit Assign function
- removed some DC leaks when taking screenshot
- support for 16bpp TRawImage
- added IsMostlyClockwise function to check for orientation of polygon (even if concave)
- avoid error with freed pointer in BGRAAnimatedGif

SVG :
- color global property of SVG (can be used with currentColor keyword)
- added IterateElements in main SVG class to customize manually
- fixed color to string, deleting style element
- support for multi class CSS
- fixed Canvas2d nested mask

https://github.com/bgrabitmap/bgrabitmap/releases

Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: New version of BGRABitmap
« Reply #629 on: August 21, 2022, 12:28:02 pm »
New version (11.5.2) of BGRABitmap
https://github.com/bgrabitmap/bgrabitmap/releases

In version 11.5.1:
- fix for text and compilation with mseGUI

In version 11.5.2:
- fix screenshot on MacOS
- detect click count on layer original
- detect text glyph click

Conscience is the debugger of the mind

 

TinyPortal © 2005-2018