-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find lazutf8classes #201
Comments
Maybe reconsider this?: #139 |
Hi With this patch the package compiles with lazarus trunk, also replaces the deprecated UTF8CharacterLength Regards |
If the patch is ok, can the OPM please updated. |
@DomingoGP can you create a PR with this patch applied? |
Created. Circular feel free to close the pull request if you prefer to solve the issue in a different way. |
Ok I applied your patch, thanks! |
Yes, I will wait for people to confirm it is all okay. |
LazUtils is still needed for FreeType |
By the way, I've also done some minor adjustments to reduce the number of compilation warnings. |
For me the patch is ok. I have inserted the changes by hand and was ok to create a fpc-fixes with Lazarus trunk.
Am 25. Juni 2023 16:52:46 MESZ schrieb circular17 ***@***.***>:
…> If the patch is ok, can the OPM please updated.
Yes, I will wait for people to confirm it is all okay.
--
Reply to this email directly or view it on GitHub:
#201 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
I've been able to compile as well with Lazarus 2.2.6 and FPC 3.2.2 |
I've added a compilation directive, but that's not great, because it relies on manually adjusting bgrabitmap.inc: uses
LazVersion, BGRAClasses, SysUtils, math, BGRAUnicode
{$IFDEF BGRABITMAP_USE_LCL},
{$IFDEF BGRABITMAP_USE_LCL22}
classes
{$ELSE}
LazUTF8Classes
{$ENDIF}
{$ENDIF}; I've tried using LazVersion unit, but the const does not seem to be defined in the |
Unfortunately, it seems that it is not defined within the uses. |
I find myself in this situation and have never applied a .patch file. Can someone outline the process for getting BGRABitmap to compile and make usable within FP and Lazarus please? I apologize for being uninformed about this. Can't find this .patch process (or is this only for github use--but then I still don't know how to get BGRABitmap working for me). |
Hello CardanoDVPR. Which version of Lazarus are you using? |
Lazarus version 3.99, Free Pascal version 3.3.1. |
Ok so probably you can use dev-bgrabitmap branch. Do you know how to retrieve it? |
Yes. I have it. But now I have a new error: unibitmap.inc(2463,5) Error: Identifier not found "ResolutionUnit" |
Ah ok. ResolutionUnit is defined on line 529 like this: {$IF FPC_FULLVERSION<30301}
//Resolution
property ResolutionUnit: TResolutionUnit read FResolutionUnit write SetResolutionUnit;
property ResolutionX: Single read FResolutionX write FResolutionX;
property ResolutionY: Single read FResolutionY write FResolutionY;
property ResolutionWidth: Single read GetResolutionWidth;
property ResolutionHeight: Single read GetResolutionHeight;
{$ENDIF} So I suppose that you have trunk version of FPC, but not the latest version of it. So I suggest either to use a stable version of FPC or to update to latest trunk. |
The perils of trying to stay up to date. I needed the trunk for some other functionality. Ok. Thank you for your help. |
Indeed. Well maybe the functionality you need is also in the latest update of trunk. Cheers |
bgrautf8.pas(10,72) Error: Cannot find lazutf8classes used by BGRAUTF8 of package BGRABitmapPack.
https://forum.lazarus.freepascal.org/index.php/topic,63673.msg482696.html#msg482696
The text was updated successfully, but these errors were encountered: