Recent

Author Topic: Lazarus Release 4.0  (Read 116485 times)

robert rozee

  • Sr. Member
  • ****
  • Posts: 376
Re: Lazarus Release 4.0
« Reply #15 on: May 05, 2025, 04:21:36 pm »
Where is libc 2.34 still supported?

there are many millions of computers around the world running older Linux distros such as Mint 19.3 (using glibc 2.27). often these machines are located in places where upgrade is not simple due to: lack of connectivity, lack of expertise, no desire to upgrade the OS on a machine that is currently working just fine. older Linux distros are perfectly functional and secure - far more so than today's MicroSoft alternatives. the latest version of the FireFox browser is available for these older Linux distros, and with the world moving to fibre broadband connectivity most of the machines running these older Linux distros will be sitting behind a robust firewall in the form of a fibre modem.

the sorts of people using these machines running older Linux distros will include grandparents, low-waged persons, persons living in poorer countries, and school-children. ie, folks who are often not living in what we call "first world" countries, or if they are then are relegated to lower socio-economic communities.


dismissing these users of older Linux distros is:
  • a very "first world" mentality
  • simply arrogant

cheers,
rob   :-(

robert rozee

  • Sr. Member
  • ****
  • Posts: 376
Re: Lazarus Release 4.0
« Reply #16 on: May 05, 2025, 04:23:58 pm »
oh,
      and i should add that there is NO GOOD REASON to not build against GLIBC_2.2.5. i have given you the tools to do this.


cheers,
rob   :-(

chinaliu

  • New member
  • *
  • Posts: 7
Re: Lazarus Release 4.0
« Reply #17 on: May 05, 2025, 05:36:48 pm »
thanks!

Fred vS

  • Hero Member
  • *****
  • Posts: 3919
    • StrumPract is the musicians best friend
Re: Lazarus Release 4.0
« Reply #18 on: May 05, 2025, 05:38:52 pm »
oh,
      and i should add that there is NO GOOD REASON to not build against GLIBC_2.2.5. i have given you the tools to do this.

Me too:-\
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

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Lazarus Release 4.0
« Reply #19 on: May 05, 2025, 06:30:23 pm »
Lazarus binaries (not distro ones) should be built on older distro, with compatibile glibc, eg on Ubuntu 20.
Off topic and fwiw: that is not a solution rather a workaround.
Today is tomorrow's yesterday.

zeljko

  • Hero Member
  • *****
  • Posts: 1927
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release 4.0
« Reply #20 on: May 05, 2025, 09:10:53 pm »
With fpc-3.2.2 it's the only solution atm.

flowCRANE

  • Hero Member
  • *****
  • Posts: 956
Re: Lazarus Release 4.0
« Reply #21 on: May 05, 2025, 09:47:23 pm »
I think I've found a problem with IDE coloring - gutter, despite the RGB color set to 10,10,10, has a light gray background for bookmarks and breakpoint markers (see attachment). Can someone tell me why in Lazarus 4.0 RC3 the gutter color is fixed, unlike in previous IDE versions? Is the color of this gutter piece hardcoded? It looks like a bug to me.

Edit: yes, it seems to be hardcoded, because in light theme it also has a fixed color, the same as the client window color. To be sure, I uninstalled the MetaDarkStyle package and yes, by default only half of the gutter can have a custom color (fold tree, line numbers and modification markers), and the other half can't (bookmarks and breakpoints). Why was this changed?! This sucks!

I had to change this color in the IDE code. In the Lazarus/ide/sourceeditor.pp file, just add the following line, specifying your color (mine is RGB 10,10,10):

Code: Pascal  [Select][+][-]
  1. procedure TSourceEditor.CreateEditor(AOwner: TComponent; AParent: TWinControl);
  2. var
  3.   NewName: string;
  4.   i: integer;
  5.   bmp: TCustomBitmap;
  6. Begin
  7.   {$IFDEF IDE_DEBUG}
  8.   debugln('TSourceEditor.CreateEditor  A ');
  9.   {$ENDIF}
  10.   if not assigned(FEditor) then Begin
  11.     FVisible := False;
  12.     i:=0;
  13.     repeat
  14.       inc(i);
  15.       NewName:='SynEdit'+IntToStr(i);
  16.     until (AOwner.FindComponent(NewName)=nil);
  17.     FEditor := TIDESynEditor.Create(AOwner);
  18.     FEditor.BeginUpdate;
  19.     with FEditor do begin
  20.       Name:=NewName;
  21.       Text:='';
  22.       Align := alClient;
  23.       Visible := False;
  24.       BookMarkOptions.EnableKeys := false;
  25.       BookMarkOptions.LeftMargin:=1;
  26.       BookMarkOptions.BookmarkImages := SourceEditorMarks.ImgList;
  27.       Gutter.MarksPart.DebugMarksImageIndex := SourceEditorMarks.SourceLineImg;
  28.       Gutter.MarksPart.MarkupInfo.Background := RGBToColor(10, 10, 10); // custom background color for gutter marks
  29.       WantTabs := true;
  30.       ScrollBars := ssAutoBoth;
« Last Edit: May 05, 2025, 10:33:50 pm by flowCRANE »
Lazarus 4.6 with FPC 3.2.2, Windows 11 — all 64-bit

Working solo on a top-down retro-style action/adventure game (pixel art), programming the engine from scratch, using Free Pascal and SDL3.

dseligo

  • Hero Member
  • *****
  • Posts: 1683
Re: Lazarus Release 4.0
« Reply #22 on: May 05, 2025, 11:26:52 pm »
Thank you for the new version!

I have problems with BCButton and BCButtonFocus. If I compile then for Win64/x86_64 target everything is fine, but if I compile for Win32/i386 target then I get these errors in unit BCNumericKeyboard:
Code: Text  [Select][+][-]
  1. Compile package bgracontrols 9.0.1.7: Exit code 1, Errors: 3
  2. bcnumerickeyboard.pas(130,34) Error: Variable identifier expected
  3. bcnumerickeyboard.pas(144,34) Error: Variable identifier expected
  4. bcnumerickeyboard.pas(158,34) Error: Variable identifier expected

These are the lines that produce errors:
Code: Pascal  [Select][+][-]
  1. ...
  2.       Application.QueueAsyncCall(@PressVirtKey, VK_BACK);
  3. ...
  4.       Application.QueueAsyncCall(@PressVirtKey, vk_DotNumPad);
  5. ...
  6.       Application.QueueAsyncCall(@PressVirtKey, Ord(TBCButton(Sender).Caption[1]));
  7. ...

I don't know if it is relevant, but I had problems with installing BGRABitmap package. Message 'Broken dependency', 'One or more required packages were not found. See package graph for details.' appeared first, and then error: 'Cannot install package: "bgrabitmappack4fpgui.lpk".'.
I deselected 'bgrabitmappack4fpgui.lpk' and installed rest of BGRABitmap package without further problems.

This is on Windows 11.
I installed 64 bit version of Lazarus and then lazarus-4.0-fpc-3.2.2-cross-i386-win32-win64.exe addon.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12345
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 4.0
« Reply #23 on: May 05, 2025, 11:39:31 pm »
I think I've found a problem with IDE coloring - gutter, despite the RGB color set to 10,10,10, has a light gray background for bookmarks and breakpoint markers (see attachment).

Please report as a bug.

dsiders

  • Hero Member
  • *****
  • Posts: 1613
Re: Lazarus Release 4.0
« Reply #24 on: May 05, 2025, 11:59:30 pm »
Thank you for the new version!

I have problems with BCButton and BCButtonFocus. If I compile then for Win64/x86_64 target everything is fine, but if I compile for Win32/i386 target then I get these errors in unit BCNumericKeyboard:
Code: Text  [Select][+][-]
  1. Compile package bgracontrols 9.0.1.7: Exit code 1, Errors: 3
  2. bcnumerickeyboard.pas(130,34) Error: Variable identifier expected
  3. bcnumerickeyboard.pas(144,34) Error: Variable identifier expected
  4. bcnumerickeyboard.pas(158,34) Error: Variable identifier expected

These are the lines that produce errors:
Code: Pascal  [Select][+][-]
  1. ...
  2.       Application.QueueAsyncCall(@PressVirtKey, VK_BACK);
  3. ...
  4.       Application.QueueAsyncCall(@PressVirtKey, vk_DotNumPad);
  5. ...
  6.       Application.QueueAsyncCall(@PressVirtKey, Ord(TBCButton(Sender).Caption[1]));
  7. ...

I don't know if it is relevant, but I had problems with installing BGRABitmap package. Message 'Broken dependency', 'One or more required packages were not found. See package graph for details.' appeared first, and then error: 'Cannot install package: "bgrabitmappack4fpgui.lpk".'.
I deselected 'bgrabitmappack4fpgui.lpk' and installed rest of BGRABitmap package without further problems.

This is on Windows 11.
I installed 64 bit version of Lazarus and then lazarus-4.0-fpc-3.2.2-cross-i386-win32-win64.exe addon.

I you want to discuss BGRA issues you can start your own thread. This one is about the Lazarus 4.0 release... not BGRABitmap,

simone

  • Hero Member
  • *****
  • Posts: 701
Re: Lazarus Release 4.0
« Reply #25 on: May 06, 2025, 12:14:48 am »
It is sad for me to discover that the problem I reported on Lazarus 4.0rc1, solved by Martin_fr (see following link), is present in the final release. I cannot compile a codebase made in 10 years of work.

https://forum.lazarus.freepascal.org/index.php/topic,69059.msg535776.html#msg535776
Microsoft Windows 10/11 64 bit - Lazarus 3.8/4.0 FPC 3.2.2 x86_64-win64-win32/win64

dsiders

  • Hero Member
  • *****
  • Posts: 1613
Re: Lazarus Release 4.0
« Reply #26 on: May 06, 2025, 12:28:38 am »
It is sad for me to discover that the problem I reported on Lazarus 4.0rc1, solved by Martin_fr (see following link), is present in the final release. I cannot compile a codebase made in 10 years of work.

https://forum.lazarus.freepascal.org/index.php/topic,69059.msg535776.html#msg535776

I looked at the blame history for both main and fixes_4. They are identical. So whatever you thought was done...was not done.

File a bug report with sufficient detail to identify what the problem is... and not just your disappointment with a lack of a solution.

simone

  • Hero Member
  • *****
  • Posts: 701
Re: Lazarus Release 4.0
« Reply #27 on: May 06, 2025, 12:35:17 am »
I did what you asked at the time on this forum. Read carefully the old thread on this forum, of which I sent the link to. There is a the clear description of the problem by me and the solution by Martin.
Microsoft Windows 10/11 64 bit - Lazarus 3.8/4.0 FPC 3.2.2 x86_64-win64-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12345
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 4.0
« Reply #28 on: May 06, 2025, 12:40:41 am »
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41267

It was discussed by mail and the issue was created.

Not sure why it wasn't further processed.

simone

  • Hero Member
  • *****
  • Posts: 701
Re: Lazarus Release 4.0
« Reply #29 on: May 06, 2025, 12:49:42 am »
Thank you Martin for your precious help and for telling the true story.
Microsoft Windows 10/11 64 bit - Lazarus 3.8/4.0 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018