Recent

Author Topic: BGRABitmap 11.0 compilation fail  (Read 1882 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
BGRABitmap 11.0 compilation fail
« on: June 02, 2020, 03:51:27 pm »
Hi there everyone,

Trying to compile the latest BGRABitmap 11.0 gives me the following error:

Code: Pascal  [Select][+][-]
  1. Compile package BGRABitmapPack 11.0: Exit code 1, Errors: 1, Warnings: 2
  2. bgrafreetype.pas(220,3) Warning: Function result variable does not seem to be initialized
  3. bgrafreetype.pas(718,36) Warning: Local variable "ofsX" does not seem to be initialized
  4. bgrafreetype.pas(900,18) Error: identifier idents no member "CharKerning"
  5.  

Any ideas how to solve this problem?

Cheers,

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

esvignolo

  • Full Member
  • ***
  • Posts: 159
  • Using FPC in Windows, Linux, Macos
Re: BGRABitmap 11.0 compilation fail
« Reply #1 on: June 02, 2020, 04:20:37 pm »
Hi JD

I have the sale issue, and i make a provisional change in bgrafreetype.pas:

Code: Pascal  [Select][+][-]
  1. function TFreeTypeTypeWriter.ComputeKerning(AIdLeft, AIdRight: string): single;
  2. {$IFDEF LAZFREETYPE_PROVIDE_KERNING}
  3.  
  4.  

for

Code: Pascal  [Select][+][-]
  1. {$IFNDEF LAZFREETYPE_PROVIDE_KERNING}
  2.  

Is not the best, but use another conditional and compiles

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap 11.0 compilation fail
« Reply #2 on: June 02, 2020, 10:08:51 pm »
Hello JD,

CharKerning has been added to trunk. So it checks against the version of Lazarus that it is >= 2.0.9.

Which version of Lazarus do you have?
Conscience is the debugger of the mind

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRABitmap 11.0 compilation fail
« Reply #3 on: June 02, 2020, 11:41:40 pm »
Hello JD,

CharKerning has been added to trunk. So it checks against the version of Lazarus that it is >= 2.0.9.

Which version of Lazarus do you have?

2.1
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap 11.0 compilation fail
« Reply #4 on: June 03, 2020, 11:23:02 am »
So that would be trunk version? Can you update it to current trunk?
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap 11.0 compilation fail
« Reply #5 on: June 03, 2020, 05:18:20 pm »
BugsBeGone suggests to check againts version 2.1.0 as that is the trunk version:
https://github.com/bgrabitmap/bgrabitmap/issues/112
Conscience is the debugger of the mind

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRABitmap 11.0 compilation fail
« Reply #6 on: June 03, 2020, 11:06:57 pm »
So that would be trunk version? Can you update it to current trunk?

I guess so. I would not want to update to current trunk because I don't want to mess up my major projects.  :D
« Last Edit: June 03, 2020, 11:08:30 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap 11.0 compilation fail
« Reply #7 on: June 04, 2020, 03:00:51 pm »
Ok so to fix compilation, change the version test at the top of BGRAFreeType to:
Code: Pascal  [Select][+][-]
  1. {$IF laz_fullversion >= 2020000}
So that it will be active only in next release version.

Regards
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018