Recent

Author Topic: Lazbarcodes not installing (ubarcodes.pas not compiling)  (Read 431 times)

indydev

  • Jr. Member
  • **
  • Posts: 65
Lazbarcodes not installing (ubarcodes.pas not compiling)
« on: December 14, 2022, 07:04:55 pm »
I am using fpcupdeluxe to install the Lazbarcodes module and it is failing due to a compilation error in ubarcodes.pas.

There is a (3134) error "This kind of property cannot be published" at line 639. At this line the published property is reading and writing a type TBarcodeMaxicodeMode which is a simple 6 member set, so I don't know why the compiler is complaining.

definition of TBarcodeMaxiCode
Code: Pascal  [Select][+][-]
  1. 607: { TBarcodeMaxiCode }
  2. 608:  TBarcodeMaxicodeMode = (mcmAuto=0, mcmMode2=2, mcmMode3=3, mcmMode4=4, mcmMode5=5, mcmMode6=6);

beginning of Class definition (where FMode is defined and error traces to)
Code: Pascal  [Select][+][-]
  1. 610: TBarcodeMaxiCode = class(TSimpleBarcode)
  2. 611:  private
  3. 612:    FMode: TBarcodeMaxicodeMode;
  4. .
  5. :

Error line. code stops at read
Code: Pascal  [Select][+][-]
  1. 639:  property Mode: TBarcodeMaxicodeMode read FMode write SetMode default mcmAuto;

I am using Linux Ubuntu 22.04, and using Trunk for FPC and Lazarus.

Am I missing something?

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Lazbarcodes not installing (ubarcodes.pas not compiling)
« Reply #1 on: December 14, 2022, 08:24:21 pm »
Removed the numerical assignments (hoping nobody relied on them...) . Compiles now with FPC/main.

indydev

  • Jr. Member
  • **
  • Posts: 65
[solved] Re: Lazbarcodes not installing (ubarcodes.pas not compiling)
« Reply #2 on: December 14, 2022, 08:50:01 pm »
Ok. Great! It installed.  Thank you.

 

TinyPortal © 2005-2018