Forum > Packages and Libraries
Lazbarcodes not installing (ubarcodes.pas not compiling)
(1/1)
indydev:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---607: { TBarcodeMaxiCode }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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---610: TBarcodeMaxiCode = class(TSimpleBarcode)611: private612: FMode: TBarcodeMaxicodeMode;.:
Error line. code stops at read
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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:
Removed the numerical assignments (hoping nobody relied on them...) . Compiles now with FPC/main.
indydev:
Ok. Great! It installed. Thank you.
Navigation
[0] Message Index